using System.Security.Cryptography;
using System.Text;
加密方法:
public static string MD5JM(string strText)
{
MD5CryptoServiceProvider x = new MD5CryptoServiceProvider();
byte[] bs = x.ComputeHash(Encoding.Default.GetBytes(strText));
StringBuilder sb = new StringBuilder();
foreach(byte b in bs)
{
sb.Append(b.ToString("x2").ToLower());
}
return sb.ToString();
}