I was just going through one of DavidHayden\'s articles on Hashing User Passwords.
Really I can\'t get what he is trying to achieve.
Here is his code:
Use the System.Web.Helpers.Crypto NuGet package from Microsoft. It automatically adds salt to the hash.
System.Web.Helpers.Crypto
You hash a password like this: var hash = Crypto.HashPassword("foo");
var hash = Crypto.HashPassword("foo");
You verify a password like this: var verified = Crypto.VerifyHashedPassword(hash, "foo");
var verified = Crypto.VerifyHashedPassword(hash, "foo");