Skip to content

Instantly share code, notes, and snippets.

@dlidstrom
Last active Aug 26, 2016
Embed
What would you like to do?
using (var md5 = System.Security.Cryptography.MD5.Create())
{
var hash = md5.ComputeHash(Encoding.ASCII.GetBytes("dlidstrom@gmail.com"));
var sb = new StringBuilder();
for (int i = 0; i < hash.Length; i++)
{
sb.Append(hash[i].ToString("x2"));
}
sb.ToString().Dump();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment