diff options
| author | Donald Stufft <donald@stufft.io> | 2014-12-06 16:19:39 -0500 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2014-12-06 16:19:39 -0500 |
| commit | 5be3958d33df26719e59ff3ddb94572c1811fa8c (patch) | |
| tree | 5698beb7e319d3728d0874d63f97a3b19177e8e3 | |
| parent | c87a1f0d072083b1f0a30eaebe23f06c9231c2db (diff) | |
| parent | a2e079fed7647bfc38b8878fab8e32e6520910ac (diff) | |
| download | py-bcrypt-git-5be3958d33df26719e59ff3ddb94572c1811fa8c.tar.gz | |
Merge pull request #30 from alex/increase-the-work-factor
Make the example of changing the workfactor *increase* it, rather than decrease it
| -rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ the work factor merely pass the desired number of rounds to >>> import bcrypt >>> password = b"super secret password" >>> # Hash a password for the first time, with a certain number of rounds - >>> hashed = bcrypt.hashpw(password, bcrypt.gensalt(10)) + >>> 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: |
