summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2016-06-30 13:07:28 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-06-30 12:07:28 -0500
commitb3f472e33513b3c251affb120db7945a77f05adf (patch)
treee329f7c7253e80cdde38537e062261fbdee60d56 /README.rst
parentdcbfcccb7eabd30726fc84485bf7c012a4d3966b (diff)
downloadpy-bcrypt-git-b3f472e33513b3c251affb120db7945a77f05adf.tar.gz
Use checkpw() instead of == (#86)
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index b8c75a9..3859bb8 100644
--- a/README.rst
+++ b/README.rst
@@ -105,7 +105,7 @@ the work factor merely pass the desired number of rounds to
>>> hashed = bcrypt.hashpw(password, bcrypt.gensalt(14))
>>> # Check that a unhashed password matches one that has previously been
>>> # hashed
- >>> if bcrypt.hashpw(password, hashed) == hashed:
+ >>> if bcrypt.checkpw(password, hashed):
... print("It Matches!")
... else:
... print("It Does not Match :(")