过时写法:
string truePwd = FormsAuthentication.HashPasswordForStoringInConfigFile(strPassWord, "MD5"); 替换成如下写法即可:
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create(); string truePwd = BitConverter.ToString(md5.ComputeHash(Encoding.UTF8.GetBytes(strPassWord + "[email protected]#[email protected]!#[email protected]#4345asDF"))).Replace("-", null);
原文地址:https://www.cnblogs.com/skye-mei/p/8361754.html
时间: 2024-11-03 01:58:35