summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.hash.hex_digests.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/lib/passlib.hash.hex_digests.rst')
-rw-r--r--docs/lib/passlib.hash.hex_digests.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/lib/passlib.hash.hex_digests.rst b/docs/lib/passlib.hash.hex_digests.rst
index d9d9cb0..0f8f5fd 100644
--- a/docs/lib/passlib.hash.hex_digests.rst
+++ b/docs/lib/passlib.hash.hex_digests.rst
@@ -22,14 +22,17 @@ and can be used directly as follows::
>>> from passlib.hash import hex_sha1 as hex_sha1
- >>> #encrypt password
+ >>> # encrypt password
>>> h = hex_sha1.encrypt("password")
>>> h
'5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'
- >>> hex_sha1.verify("password", h) #verify correct password
+ >>> # verify correct password
+ >>> hex_sha1.verify("password", h)
True
- >>> hex_sha1.verify("secret", h) #verify incorrect password
+
+ >>> # verify incorrect password
+ >>> hex_sha1.verify("secret", h)
False
.. seealso:: the generic :ref:`PasswordHash usage examples <password-hash-examples>`