Return to Snippet

Revision: 24586
at March 4, 2010 11:15 by mracoker


Updated Code
string hash = Convert.ToBase64String(new System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.Default.GetBytes(inputStringToEncode)));

Revision: 24585
at March 4, 2010 11:14 by mracoker


Initial Code
string hash = Convert.ToBase64String(new System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.Default.GetBytes(input)));

Initial URL
http://snippets.dzone.com/posts/show/2771

Initial Description

                                

Initial Title
MD5 Hash in one line of code

Initial Tags

                                

Initial Language
C#