summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-07-29 14:50:04 +1000
committerDamien Miller <djm@mindrot.org>2013-07-29 14:50:04 +1000
commitae4091e2bf9f1e9bebe2f22da949502e8defebfe (patch)
tree84f4981e64f02673f7670ab199ffd168ccd2015a /README
parentb710e4986ec3b7d01213919cb66ecfaac201e7aa (diff)
downloadpy-bcrypt-ae4091e2bf9f1e9bebe2f22da949502e8defebfe.tar.gz
some KDF fixes; add checkpw() method
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 5067c40..f2d97b7 100644
--- a/README
+++ b/README
@@ -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"