C#WinformMD5加密学习积累

2/11/2016来源:C#应用人气:2010

string passWord = txtPassword.Text.Trim();
byte[] result = Encoding.Default.GetBytes(password);
md5 md5 = new MD5CryptoServicePRovider();
byte[] output = md5.ComputeHash(result);
password = BitConverter.ToString(output).Replace("-", "");