MD5 md5 = new MD5CryptoServiceProvider();
md5.ComputeHash((ASCIIEncoding.ASCII.GetBytes(strValue)));
byte[] byteResult = md5.Hash;
StringBuilder sb = new StringBuilder();
for (int i = 0; i < byteResult.Length; i++)
{
sb.Append(byteResult[i].ToString("x2"));
}
return sb.ToString();