public static string GetMd5Sum(string input)
{
System.Security.Cryptography.MD5 md5Hasher = System.Security.Cryptography.MD5.Create();
byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes(input));
StringBuilder res = new StringBuilder();
// Format each byte as a hexadecimal string.
foreach (byte t in data)
{
res.Append(t.ToString("x2"));
}
return res.ToString();
}