MD5加密
//MD5
private string HashTextMD5(string strToHash)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
byte[] bytValue;
byte[] bytHash;
string strPassword;
bytValue = System.Text.Encoding.UTF8.GetBytes(strToHash);
bytHash = md5.ComputeHash(bytValue);
md5.Clear();
strPassword = Convert.ToBase64String(bytHash);
return strPassword;
}posted on 2007-05-07 16:05 mjgforever 阅读(238) 评论(0) 收藏 举报

浙公网安备 33010602011771号