diff options
author | Damien Miller <djm@mindrot.org> | 2013-07-29 14:50:04 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-07-29 14:50:04 +1000 |
commit | ae4091e2bf9f1e9bebe2f22da949502e8defebfe (patch) | |
tree | 84f4981e64f02673f7670ab199ffd168ccd2015a /README | |
parent | b710e4986ec3b7d01213919cb66ecfaac201e7aa (diff) | |
download | py-bcrypt-ae4091e2bf9f1e9bebe2f22da949502e8defebfe.tar.gz |
some KDF fixes; add checkpw() method
Diffstat (limited to 'README')
-rw-r--r-- | README | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,8 +40,8 @@ A simple example that demonstrates most of the features: hashed = bcrypt.hashpw(password, bcrypt.gensalt(10)) # Check that an unencrypted password matches one that has - # previously been hashed - if bcrypt.hashpw(plaintext, hashed) == hashed: + # previously been hashed. + if bcrypt.checkpw(plaintext, hashed): print "It matches" else: print "It does not match" |