MD5 Hash in one line of code


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. string hash = Convert.ToBase64String(new System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.Default.GetBytes(inputStringToEncode)));

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.