Skip to content

Instantly share code, notes, and snippets.

@dlidstrom
Last active August 26, 2016 06:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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