using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace Helper
{
public static partial class MD5Helper
{
public static string Encrypt(string pwd)
{
MD5 md5 = MD5.Create();
byte[] pwd2 =md5.ComputeHash( Encoding.UTF8.GetBytes(pwd));
StringBuilder sb = new StringBuilder();
for (int i = 0; i < pwd2.Length; i++)
{
sb.Append(pwd2[i].ToString("x2").ToLower());
}
return sb.ToString();
}
}
}
MD5Helper
最新推荐文章于 2023-11-07 19:43:13 发布