summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.context.rst
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-04-06 12:35:25 -0400
committerEli Collins <elic@assurancetechnologies.com>2011-04-06 12:35:25 -0400
commit37a3954c8bac9ade1cdcc0f86e2c2fb7f1d312fc (patch)
tree56eb7b2bef0bb8ec4d9e94ac338d06019354327c /docs/lib/passlib.context.rst
parent3da23d45e03f7cb26374a3546106387b8a293ad3 (diff)
downloadpasslib-37a3954c8bac9ade1cdcc0f86e2c2fb7f1d312fc.tar.gz
minor additions to documentation
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