summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.hash.bcrypt_sha256.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/lib/passlib.hash.bcrypt_sha256.rst')
-rw-r--r--docs/lib/passlib.hash.bcrypt_sha256.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/lib/passlib.hash.bcrypt_sha256.rst b/docs/lib/passlib.hash.bcrypt_sha256.rst
index 8b8face..6d9fd7c 100644
--- a/docs/lib/passlib.hash.bcrypt_sha256.rst
+++ b/docs/lib/passlib.hash.bcrypt_sha256.rst
@@ -21,7 +21,7 @@ This class can be used directly as follows::
'$bcrypt-sha256$2a,12$LrmaIX5x4TRtAwEfwJZa1.$2ehnw6LvuIUTM0iz4iz9hTxv21B6KFO'
>>> # the same, but with an explicit number of rounds
- >>> bcrypt.hash("password", rounds=8)
+ >>> bcrypt.replace(rounds=8).hash("password")
'$bcrypt-sha256$2a,8$UE3dIZ.0I6XZtA/LdMrrle$Ag04/5zYu./12.OSqInXZnJ.WZoh1ua'
>>> # verify password