Permalink
Browse files

and again..

  • Loading branch information...
1 parent 0ed2706 commit dc35b3cc2a0a097549320a13a88f3c3df446f473 @jimmy2saints committed Dec 4, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 README.md
View
@@ -1,16 +1,21 @@
- #SimplePassword
+ SimplePassword
+ ======================
This is a simple class for creating salted password hashes.
Typical use would be:
- var passwordHash = new SaltedPasswordHash("someClearTextPassword");
+ ```c#
+ var passwordHash = new SaltedPasswordHash("someClearTextPassword");
SaveToDatebase(passwordHash.Hash, passwordHash.Salt);
+ ```
Later to verify the password
+ ```c#
var hash = GetHashFromDatabase();
var salt = GetSaltFromDatabase();
var passwordHash = new SaltedPasswordHash(hash,salt);
bool verified = passwordHash.Verify("someClearTextPassword");
if(verified)
// Log user in, or similar
+ ```

0 comments on commit dc35b3c

Please sign in to comment.