- //对密码进行加密操作
- <span style="font-size:18px;"> public static string CreatePwd(string pwd) {
- MD5 md = MD5.Create();
- string result = "";
- byte[] data =md.ComputeHash( Encoding.Default.GetBytes(pwd)); //把密码拆分成字节进行加密
- foreach (byte item in data) {
- result += item .ToString("x2");
- }
- return result;
- }</span>
对密码进行加密操作 .
最新推荐文章于 2021-08-19 09:17:30 发布