public string GetMD5(string text)
{
MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();
MD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(text));
byte[] result = MD5.Hash;
StringBuilder str = new StringBuilder();
for (int i = 1; i < result.Length; i++)
{
str.Append(result[i].ToString("x2"));
}
return str.ToString();
}
Loading


Aakash MauryaRank #114 · 19.8K reputationPosted Jul 13, 2018, 12:57 AM EDT
Suman RajRank #7,001 · 251 reputationPosted Jul 16, 2018, 7:18 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 16, 2018, 7:24 PM EDT
Aakash MauryaRank #114 · 19.8K reputationPosted Jul 16, 2018, 7:31 PM EDT