summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.context.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/lib/passlib.context.rst')
-rw-r--r--docs/lib/passlib.context.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/lib/passlib.context.rst b/docs/lib/passlib.context.rst
index 036af13..769815c 100644
--- a/docs/lib/passlib.context.rst
+++ b/docs/lib/passlib.context.rst
@@ -52,7 +52,7 @@ To start off with a simple example of how to create and use a CryptContext::
>>> #the scheme may be forced explicitly,
>>> #though it must be one of the ones recognized by the context:
- >>> hash2 = myctx.encrypt("too many secrets", scheme="des-crypt")
+ >>> hash2 = myctx.encrypt("too many secrets", scheme="des_crypt")
>>> hash2
'm9pvLj4.hWxJU'
@@ -75,7 +75,7 @@ To start off with a simple example of how to create and use a CryptContext::
Policy Examination
------------------
If introspection of a :class:`!CryptContext` instance
-is needed, all configuration options are stored in a :class:`CryptPolicy` instance accessible through
+is needed, all configuration options are stored in a :class:`!CryptPolicy` instance accessible through
their ``policy`` attribute::
>>> from passlib.context import CryptContext
@@ -89,6 +89,8 @@ their ``policy`` attribute::
>>> myctx.policy.get_handler()
<class 'passlib.handlers.md5_crypt.md5_crypt'>
+See the :class:`CryptPolicy` class for more details on it's interface.
+
Full Integration
----------------
The following is an extended example of how PassLib can be integrated into an existing