MD5加密
#region 用md5加密字符串后返回
public string Md5(string s)
{
//用md5加密s,并返回
byte[] result = Encoding.Default.GetBytes(s);
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
s = BitConverter.ToString(output).Replace("-", "");
return s;
}
#endregion