diff options
author | Donald Stufft <donald@stufft.io> | 2016-06-30 13:07:28 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-06-30 12:07:28 -0500 |
commit | b3f472e33513b3c251affb120db7945a77f05adf (patch) | |
tree | e329f7c7253e80cdde38537e062261fbdee60d56 /README.rst | |
parent | dcbfcccb7eabd30726fc84485bf7c012a4d3966b (diff) | |
download | py-bcrypt-git-b3f472e33513b3c251affb120db7945a77f05adf.tar.gz |
Use checkpw() instead of == (#86)
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 :(") |