summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.utils.rst
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-05-01 12:42:43 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-05-01 12:42:43 -0400
commit7d4769b401b4fea8e21062e6e85503f20989aabd (patch)
tree23efda80cf128f79e475bc38054ce3c45ae219a8 /docs/lib/passlib.utils.rst
parent3fa87b2933ba2f596297297f97b8fc3e335ba581 (diff)
downloadpasslib-7d4769b401b4fea8e21062e6e85503f20989aabd.tar.gz
loads of documentation updates
Diffstat (limited to 'docs/lib/passlib.utils.rst')
-rw-r--r--docs/lib/passlib.utils.rst47
1 files changed, 23 insertions, 24 deletions
diff --git a/docs/lib/passlib.utils.rst b/docs/lib/passlib.utils.rst
index 02bf19c..9ecafda 100644
--- a/docs/lib/passlib.utils.rst
+++ b/docs/lib/passlib.utils.rst
@@ -19,36 +19,36 @@ They may also be useful when implementing custom handlers for existing legacy fo
Constants
=========
-.. data:: sys_bits
+..
+ .. data:: sys_bits
- Native bit size of host architecture (either 32 or 64 bit).
- used for various purposes internally.
+ Native bit size of host architecture (either 32 or 64 bit).
+ used for various purposes internally.
.. data:: unix_crypt_schemes
- List of the names of all the handlers in :mod:`passlib.hash`
- which are supported by the native :func:`crypt()` function
- of at least one OS.
+ List of the names of all the hashes in :mod:`passlib.hash`
+ which are natively supported by :func:`crypt` on at least one operating
+ system.
For all hashes in this list, the expression
- ``get_crypt_handler(name).has_backend("os_crypt")``
- will return ``True`` iff there is native OS support for that hash.
-
+ :samp:`passlib.hash.{alg}.has_backend("os_crypt")`
+ will return ``True`` if the host OS natively supports the hash.
This list is used by :data:`~passlib.hosts.host_context`
and :data:`~passlib.apps.ldap_context` to determine
which hashes are supported by the host.
- See :ref:`mcf-identifiers` for a table of which OSes
- are known to support which hashes.
+ .. seealso:: :ref:`mcf-identifiers` for a table of which OSes are known to support which hashes.
..
PYPY
JYTHON
rounds_cost_values
-Decorators
-==========
-.. autofunction:: classproperty
+..
+ Decorators
+ ==========
+ .. autofunction:: classproperty
Unicode Helpers
===============
@@ -77,7 +77,7 @@ Base64 Encoding
Base64Engine Class
------------------
Passlib has to deal with a number of different Base64 encodings,
-with varying endianness, as well as wildly different value <-> character
+with varying endianness, as well as wildly different character <-> value
mappings. This is all encapsulated in the :class:`Base64Engine` class,
which provides common encoding actions for an arbitrary base64-style encoding
scheme. There are also a couple of predefined instances which are commonly
@@ -99,8 +99,8 @@ Common Character Maps
This encoding system appears to have originated with
:class:`~passlib.hash.des_crypt`, but is used by
:class:`~passlib.hash.md5_crypt`, :class:`~passlib.hash.sha256_crypt`,
- and others. Within Passlib, this encoding is referred as ``hash64`` encoding
- to distinguish it from normal base64 and other encodings.
+ and others. Within Passlib, this encoding is referred as the "hash64" encoding,
+ to distinguish it from normal base64 and others.
.. data:: BCRYPT_CHARS
@@ -128,18 +128,17 @@ Predefined Instances
the :class:`Base64Engine` class;
the interface remains mostly unchanged.
-Other
------
-.. autofunction:: ab64_encode
-.. autofunction:: ab64_decode
-
..
+ Other
+ -----
+ .. autofunction:: ab64_encode
+ .. autofunction:: ab64_decode
+
.. data:: AB64_CHARS
Variant of standard Base64 character map used by some
custom Passlib hashes (see :func:`ab64_encode`).
-
..
Host OS
=======
@@ -150,7 +149,7 @@ Randomness
==========
.. data:: rng
- The random number generator used by passlib to generate
+ The random number generator used by Passlib to generate
salt strings and other things which don't require a
cryptographically strong source of randomness.