winform MD5加密

byte[] result = Encoding.Default.GetBytes(this.tbPass.Text.Trim());    //tbPass为输入密码的文本框
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
this.tbMd5pass.Text = BitConverter.ToString(output).Replace("-","");  

posted @ 2014-06-05 15:53  以沫浅夏  阅读(208)  评论(0编辑  收藏  举报