MD5 hash with salt for keeping password in DB in C#
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2009-08-19T15:49:57Z
Indexed on
2010/06/06
9:52 UTC
Read the original article
Hit count: 386
Could you please advise me some easy algorithm for hashing user password by MD5, but with salt for increasing reliability.
Now I have this one:
private static string GenerateHash(string value)
{
var data = System.Text.Encoding.ASCII.GetBytes(value);
data = System.Security.Cryptography.MD5.Create().ComputeHash(data);
return Convert.ToBase64String(data);
}
© Stack Overflow or respective owner