c#的MD5值

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为输出加密文本
        }

猜你喜欢

转载自blog.csdn.net/hu123456__/article/details/80595618