Почему когда я запускаю код программы мой буквы которые по идее должны переводиться в формат MD5 и выводиться в textbox2 не выводятся string MD5Encryption(string encryptionText)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
//We converted the data as a parameter to a byte array.
byte[] array = Encoding.UTF8.GetBytes(encryptionText);
//We have calculated the hash of the array.
array = md5.ComputeHash(array);
//We created a StringBuilder object to store hashed data.
StringBuilder sb = new StringBuilder();
//We have converted each byte from string into string type.
foreach (byte ba in array)
{
sb.Append(ba.ToString("x2").ToLower());
}
//We returned the hexadecimal string.
return sb.ToString();
string link = MD5Encryption(textBox1.Text);
textBox2.Text = link;
}
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
//We converted the data as a parameter to a byte array.
byte[] array = Encoding.UTF8.GetBytes(encryptionText);
//We have calculated the hash of the array.
array = md5.ComputeHash(array);
//We created a StringBuilder object to store hashed data.
StringBuilder sb = new StringBuilder();
//We have converted each byte from string into string type.
foreach (byte ba in array)
{
sb.Append(ba.ToString("x2").ToLower());
}
//We returned the hexadecimal string.
return sb.ToString();
string link = MD5Encryption(textBox1.Text);
textBox2.Text = link;
}