summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2014-12-06 16:19:39 -0500
committerDonald Stufft <donald@stufft.io>2014-12-06 16:19:39 -0500
commit5be3958d33df26719e59ff3ddb94572c1811fa8c (patch)
tree5698beb7e319d3728d0874d63f97a3b19177e8e3
parentc87a1f0d072083b1f0a30eaebe23f06c9231c2db (diff)
parenta2e079fed7647bfc38b8878fab8e32e6520910ac (diff)
downloadpy-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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 64ad8b9..9e107e7 100644
--- a/README.rst
+++ b/README.rst
@@ -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: