public static string GetMD5(string str)
{
MD5 md5 = MD5.Create();
byte[] bytes = Encoding.UTF8.GetBytes(str);
byte[] md5Bytes = md5.ComputeHash(bytes);
StringBuilder sb = new StringBuilder();
foreach(byte b in md5Bytes)
{
sb.Append(b.ToString("x2"));
}
return sb.ToString();
}