summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.hash.phpass.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.hash.phpass.rst
parent3da23d45e03f7cb26374a3546106387b8a293ad3 (diff)
downloadpasslib-37a3954c8bac9ade1cdcc0f86e2c2fb7f1d312fc.tar.gz
minor additions to documentation
Diffstat (limited to 'docs/lib/passlib.hash.phpass.rst')
-rw-r--r--docs/lib/passlib.hash.phpass.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/lib/passlib.hash.phpass.rst b/docs/lib/passlib.hash.phpass.rst
index bde6861..c628005 100644
--- a/docs/lib/passlib.hash.phpass.rst
+++ b/docs/lib/passlib.hash.phpass.rst
@@ -5,7 +5,7 @@
.. currentmodule:: passlib.hash
This algorithm is used primarily by PHP software
-which uses the `PHPass <http://www.openwall.com/phpass/>`_ library,
+which uses PHPass [#home],
a PHP library similar to PassLib. The PHPass Portable Hash
is a custom password hash used by PHPass as a fallback
when none of it's other hashes are available.
@@ -30,8 +30,8 @@ A phpass portable hash string has the format :samp:`$P${rounds}{salt}{checksum}`
following the :ref:`modular-crypt-format`.
* :samp:`{rounds}` is a single character encoding a 6-bit integer
- encoding the number of rounds used. This is logarithmic,
- the real number of rounds is ``2**rounds``. (rounds is encoded as ``8``, or 2**13 rounds, in the example).
+ representing the number of rounds used. This is logarithmic,
+ the real number of rounds is ``2**rounds``. (in the example, rounds is encoded as ``8``, or 2**13 iterations).
* :samp:`{salt}` is eight characters drawn from ``[./0-9A-Za-z]``,
providing a 48-bit salt (``ohUJ.1sd`` in the example).
@@ -65,11 +65,11 @@ This implementation of phpass differs from the specification in one way:
In order to provide support for unicode strings,
PassLib will encode unicode passwords using ``utf-8``
- before running them through sha1-crypt. If a different
+ before running them through phpass. If a different
encoding is desired by an application, the password should be encoded
before handing it to PassLib.
References
==========
-.. [#pp] PHPass homepage, which describes the algorithm -
+.. [#pp] PHPass homepage, which describes the Portable Hash algorithm -
`<http://www.openwall.com/phpass/>`_