您的位置:首页 > 其它

QQ的密码加密方法

2010-03-08 11:15 363 查看
string GetPWDHASH(string password)

{

byte[]
passwordBytes = Encoding.ASCII.GetBytes(password);

byte[]
md5Bytes = new
System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(passwordBytes);

string base64 = Convert.ToBase64String(md5Bytes);

return base64;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: