Skip to content

Instantly share code, notes, and snippets.

@dlidstrom
Last active August 26, 2016 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlidstrom/6ad549da52d717194f789474764340ff to your computer and use it in GitHub Desktop.
Save dlidstrom/6ad549da52d717194f789474764340ff to your computer and use it in GitHub Desktop.
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