C# Winform MD5加密学习积累

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("-", "");  

  

posted @ 2015-12-15 09:23  zhyue93  阅读(465)  评论(0编辑  收藏  举报