MD5值:
public void a()
{
textBox1.Text = GetFileVersion(this.textBox_file.Text);
byte[] result = Encoding.Default.GetBytes(GetFileVersion(this.textBox_file.Text));
//txtSortNum为输入密码的文本框,需要加密的文件就写这
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
this.textBox2.Text = BitConverter.ToString(output).Replace("-", "");
//txtTaskName为输出加密文本
}
c#的MD5值
最新推荐文章于 2024-08-11 02:25:11 发布