Adventureworks2012 Db - How The Password Was Stored And How The Password Validated?
I got AdventureWorks2012 DB from http://msftdbprodsamples.codeplex.com/releases/view/55330 and trying to ValidatePassword from Person.Password table. 'PasswordHash' column descript
Solution 1:
If you replace valid = dbPasswordHashed.SequenceEqual(passwordHashed); with valid = passwordHashBytes.SequenceEqual(passwordHashed);
it will give correct results.
Post a Comment for "Adventureworks2012 Db - How The Password Was Stored And How The Password Validated?"