Перебор символов - C# (194972)
Формулировка задачи:
нажимаю на кнопку и в текстбоксе идет перебор символов и причем сразу всех символов одновременно . говорю сразу, я ниче взламывать не сообираюсь, просто спрашиваю как такое делается! aaa bbb ccc итд.
Решение задачи: «Перебор символов»
textual
Листинг программы
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
Byte[] bytes4MD5 = Encoding.UTF8.GetBytes(textBox1.Text);
byte[] checkSum = md5.ComputeHash(bytes4MD5);
string result = BitConverter.ToString(checkSum).Replace("-", String.Empty);
textBox2.Text = result.ToLower();
}
public string s0, s1, st;
private void button2_Click(object sender, EventArgs e)
{
Random r = new Random();
int i = r.Next(0, 36);
textBox3.Text = string.Format("({0})", i);
}
private void button3_Click(object sender, EventArgs e)
{
char[] alphabet = Enumerable.Range('A', 26).Select(x => (char)x).ToArray();
}
private void button4_Click(object sender, EventArgs e)
{
button2.PerformClick();
button3.PerformClick();
System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
Byte[] bytes4MD5 = Encoding.UTF8.GetBytes(textBox7.Text + textBox3.Text + textBox8.Text + textBox4.Text);
byte[] checkSum = md5.ComputeHash(bytes4MD5);
string result = BitConverter.ToString(checkSum).Replace("-", String.Empty);
textBox6.Text = result.ToLower();
if (textBox6.Text == textBox5.Text)
{
MessageBox.Show("YES");
}
else ;
}
button5.Text = "NO";
button5.BackColor = Color.Red;
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
}
}