summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-10-06 12:14:04 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-10-06 12:14:04 -0400
commit0a25f664189515086d12aabacc0275b6b2ba209a (patch)
tree5e67f582d500d3f6fb7e57d8f6a58e78d3d99155 /docs
parent15f0486c44428351ba45e57e541e3e5c04019e01 (diff)
parentbf7afc81eff400c835fc43505ff6e2f91bf73fa9 (diff)
downloadpasslib-0a25f664189515086d12aabacc0275b6b2ba209a.tar.gz
Merge from stable
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py6
-rw-r--r--docs/dev-requirements.txt2
-rw-r--r--docs/history/1.7.rst113
-rw-r--r--docs/history/index.rst10
-rw-r--r--docs/index.rst29
-rw-r--r--docs/install.rst16
-rw-r--r--docs/lib/passlib.exc.rst4
-rw-r--r--docs/lib/passlib.hash.argon2.rst9
-rw-r--r--docs/lib/passlib.hash.bcrypt.rst4
-rw-r--r--docs/lib/passlib.hash.bcrypt_sha256.rst39
-rw-r--r--docs/lib/passlib.hash.django_std.rst2
-rw-r--r--docs/lib/passlib.hash.ldap_std.rst5
-rw-r--r--docs/lib/passlib.hash.rst8
-rw-r--r--docs/lib/passlib.hash.sha256_crypt.rst6
-rw-r--r--docs/requirements.txt2
15 files changed, 211 insertions, 44 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 7b61d34..894bd09 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -41,9 +41,9 @@ import datetime
for _tag in os.environ.get("SPHINX_BUILD_TAGS", "").split():
tags.add(_tag)
-# building the docs requires the Cloud Sphinx theme & extensions (>= v1.4),
+# building the docs requires the Cloud Sphinx theme & extensions (>= v1.10.1),
# which contains some sphinx extensions used by Passlib.
-# (https://bitbucket.org/ecollins/cloud_sptheme)
+# (https://foss.heptapod.net/doc-utils/cloud_sptheme)
import cloud_sptheme as csp
#=============================================================================
@@ -172,7 +172,7 @@ intersphinx_mapping = {
#=============================================================================
todo_include_todos = True
keep_warnings = True
-issue_tracker_url = "bb:ecollins/passlib"
+issue_tracker_url = "https://foss.heptapod.net/python-libs/passlib/issues/{issue}"
#=============================================================================
# Options for HTML output
diff --git a/docs/dev-requirements.txt b/docs/dev-requirements.txt
index f49e8f6..0906d2b 100644
--- a/docs/dev-requirements.txt
+++ b/docs/dev-requirements.txt
@@ -1 +1 @@
-hg+https://bitbucket.org/ecollins/cloud_sptheme
+hg+https://foss.heptapod.net/doc-utils/cloud_sptheme
diff --git a/docs/history/1.7.rst b/docs/history/1.7.rst
index 5a5cf12..64fe51a 100644
--- a/docs/history/1.7.rst
+++ b/docs/history/1.7.rst
@@ -2,6 +2,110 @@
Passlib 1.7
===========
+.. rst-class:: without-title
+
+.. warning::
+
+ **Passlib 1.8 will drop support for Python 2.x, 3.3, and 3.4**;
+ and will require Python >= 3.5. The 1.7 series will be the last
+ to support Python 2.7. (See :issue:`119` for rationale).
+
+**1.7.3** (2020-10-06)
+======================
+
+This release rolls up assorted bug & compatibility fixes since 1.7.2.
+
+Administrative Changes
+----------------------
+
+.. rst-class:: without-title
+
+.. note::
+
+ **Passlib has moved to Heptapod!**
+
+ Due to BitBucket deprecating Mercurial support, Passlib's public repository and issue tracker
+ has been relocated. It's now located at `<https://foss.heptapod.net/python-libs/passlib>`_,
+ and is powered by `Heptapod <https://heptapod.net/>`_.
+
+ Hosting for this and other open-source projects graciously provided by the people at
+ `Octobus <https://octobus.net/>`_ and `CleverCloud <https://clever-cloud.com/>`_!
+
+ The mailing list and documentation urls remain the same.
+
+New Features
+------------
+
+* .. py:currentmodule:: passlib.hash
+
+ :class:`ldap_salted_sha512`: LDAP "salted hash" support added for SHA-256 and SHA-512 (:issue:`124`).
+
+Bugfixes
+--------
+
+* .. py:currentmodule:: passlib.hash
+
+ :class:`bcrypt`: Under python 3, OS native backend wasn't being detected on BSD platforms.
+ This was due to a few internal issues in feature-detection code, which have been fixed.
+
+* :func:`passlib.utils.safe_crypt`: Support :func:`crypt.crypt` unexpectedly
+ returning bytes under Python 3 (:issue:`113`).
+
+* :func:`passlib.utils.safe_crypt`: Support :func:`crypt.crypt` throwing :exc:`OSError`,
+ which can happen as of Python 3.9 (:issue:`115`).
+
+* :mod:`passlib.ext.django`: fixed lru_cache import (django 3 compatibility)
+
+* :mod:`!passlib.tests`: fixed bug where :meth:`HandlerCase.test_82_crypt_support` wasn't
+ being run on systems lacking support for the hasher being tested.
+ This test now runs regardless of system support.
+
+Deprecations
+------------
+
+* Support for Python 2.x, 3.3, and 3.4 is deprecated; and will be dropped in Passlib 1.8.
+
+Other Changes
+-------------
+
+* .. py:currentmodule:: passlib.hash
+
+ :class:`bcrypt_sha256`: Internal algorithm has been changed to use HMAC-SHA256 instead of
+ plain SHA256. This should strengthen the hash against brute-force attempts which bypass
+ the intermediary hash by using known-sha256-digest lookup tables (:issue:`114`).
+
+* .. py:currentmodule:: passlib.hash
+
+ :class:`bcrypt`: OS native backend ("os_crypt") now raises the new :exc:`~passlib.exc.PasswordValueError`
+ if password is provided as non-UTF8 bytes under python 3
+ (These can't be passed through, due to limitation in stdlib's :func:`!crypt.crypt`).
+ Prior to this release, it confusingly raised :exc:`~passlib.exc.MissingBackendError` instead.
+
+ Also improved legacy bcrypt format workarounds, to support a few more UTF8 edge cases than before.
+
+* Modified some internals to help run on FIPS systems (:issue:`116`):
+
+ In particular, when MD5 hash is not available, :class:`~passlib.hash.hex_md5`
+ will now return a dummy hasher which throws an error if used; rather than throwing
+ an uncaught :exc:`!ValueError` when an application attempts to import it. (Similar behavior
+ added for the other unsalted digest hashes).
+
+ .. py:currentmodule:: passlib.crypto.digest
+
+ Also, :func:`lookup_hash`'s ``required=False`` kwd was modified to report unsupported hashes
+ via the :attr:`HashInfo.supported` attribute; rather than letting ValueErrors through uncaught.
+
+ This should allow CryptContext instances to be created on FIPS systems without having
+ a load-time error (though they will still receive an error if an attempt is made to actually
+ *use* a FIPS-disabled hash).
+
+* Internal errors calling stdlib's :func:`crypt.crypt`, or third party libraries,
+ will now raise the new :exc:`~passlib.exc.InternalBackendError` (a RuntimeError);
+ where previously it would raise an :exc:`AssertionError`.
+
+* Various Python 3.9 compatibility fixes (including ``NotImplemented``-related warning, :issue:`125`)
+
+
**1.7.2** (2019-11-22)
======================
@@ -54,10 +158,11 @@ Deprecations
Due to lack of ``pip`` and ``venv`` support, Passlib is no longer fully tested on Python
2.6 & 3.3. There are no known issues, and bugfixes against these versions will still be
accepted for the Passlib 1.7.x series.
- However, **Passlib 1.8 will drop support for Python 2.6 & 3.3; and Passlib 2.0 will drop
- support for Python 2.x entirely.**
+ However, **Passlib 1.8 will drop support for Python 2.x, 3.3, & 3.4,** and require Python >= 3.5.
-* Support for Python 2.6 & 3.3 is deprecated; and will be dropped in Passlib 1.8.
+* Support for Python 2.x, 3.3, and 3.4 is deprecated; and will be dropped in Passlib 1.8.
+ *(2020-10-06: Updated to include all of Python 2.x, 3.3, and 3.4; when 1.7.2 was released,
+ only Python 2.6 and 3.3 support was deprecated)*
* .. py:currentmodule:: passlib.hash
@@ -280,7 +385,7 @@ As part of a long-range plan to restructure and simplify both the API and the in
a number of methods have been deprecated & replaced. The eventually goal is a large cleanup
and overhaul as part of Passlib 2.0. There will be at least one more 1.x version
before Passlib 2.0, to provide a final transitional release
-(see the `Passlib Roadmap <https://bitbucket.org/ecollins/passlib/wiki/Roadmap>`_).
+(see the `Project Roadmap <https://foss.heptapod.net/python-libs/passlib/wikis/roadmap>`_).
Password Hash API Deprecations
..............................
diff --git a/docs/history/index.rst b/docs/history/index.rst
index 0637ca7..8439c5e 100644
--- a/docs/history/index.rst
+++ b/docs/history/index.rst
@@ -15,6 +15,14 @@ Release History
1.8 Series <1.8>
+.. rst-class:: float-center without-title
+
+.. warning::
+
+ **Passlib 1.8 will drop support for Python 2.x, 3.3, and 3.4**;
+ and will require Python >= 3.5. The 1.7 series will be the last
+ to support Python 2.7. (See :issue:`119` for rationale).
+
.. toctree::
:maxdepth: 2
@@ -39,6 +47,6 @@ Release History
.. seealso::
- See the `Project Roadmap <https://bitbucket.org/ecollins/passlib/wiki/Roadmap>`_
+ See the `Project Roadmap <https://foss.heptapod.net/python-libs/passlib/wikis/roadmap>`_
for a list of future changes that may impact applications.
diff --git a/docs/index.rst b/docs/index.rst
index c3cad52..4452c63 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -19,6 +19,18 @@ Passlib |release| documentation
For documentation of the latest stable version,
see `<https://passlib.readthedocs.io>`_.
+.. rst-class:: without-title
+
+.. note::
+
+ **2020-05-01: Passlib's public repository has moved to Heptapod!**
+
+ Due to BitBucket deprecating Mercurial support, Passlib's public repository and issue tracker
+ has been relocated. It's now located at `<https://foss.heptapod.net/python-libs/passlib>`_,
+ and is powered by `Heptapod <https://heptapod.net/>`_.
+ Hosting is being graciously provided by the people at
+ `Octobus <https://octobus.net/>`_ and `CleverCloud <https://clever-cloud.com/>`_!
+
Welcome
=======
Passlib is a password hashing library for Python 2 & 3, which provides
@@ -52,6 +64,10 @@ Getting Started
This documentation is organized into two main parts:
a narrative walkthrough of Passlib, and a top-down API reference.
+:doc:`install`
+
+ See this page for system requirements & installation instructions.
+
:doc:`narr/index`
New users in particular will want to visit the walkthrough, as it provides
@@ -77,7 +93,16 @@ Online Resources
=================== ===================================================
Latest Docs: `<https://passlib.readthedocs.io>`_
- Project Home: `<https://bitbucket.org/ecollins/passlib>`_
- News & Discussion: `<https://groups.google.com/group/passlib-users>`_
+ Latest News: `<https://foss.heptapod.net/python-libs/passlib/wikis/home>`_
+ Public Repo: `<https://foss.heptapod.net/python-libs/passlib>`_
+ Mailing List: `<https://groups.google.com/group/passlib-users>`_
Downloads @ PyPI: `<https://pypi.python.org/pypi/passlib>`_
=================== ===================================================
+
+Hosting
+=======
+
+Thanks to the people at `Octobus <https://octobus.net/>`_ and `CleverCloud <https://clever-cloud.com/>`_
+for providing the repository / issue tracker hosting, as well as development of `Heptapod <https://heptapod.net/>`_!
+
+Thanks to `ReadTheDocs <https://readthedocs.io>`_ for providing documentation hosting!
diff --git a/docs/install.rst b/docs/install.rst
index 43d25fc..2ebe119 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -9,13 +9,13 @@ Supported Platforms
Passlib requires Python 2 (>= 2.6) or Python 3 (>= 3.3).
It is known to work with the following Python implementations:
-.. rst-class:: float-right
+.. rst-class:: float-right without-title
.. warning::
- * Support for Python 2.6 and 3.3 will be dropped in Passlib 1.8
-
- * Support for Python 2.x will be dropped in Passlib 2.0
+ **Passlib 1.8 will drop support for Python 2.x, 3.3, and 3.4**;
+ and will require Python >= 3.5. The 1.7 series will be the
+ last to support Python 2. (See :issue:`119` for rationale).
* CPython 2 -- v2.6 or newer.
* CPython 3 -- v3.3 or newer.
@@ -92,6 +92,14 @@ Optional Libraries
Installation Instructions
=========================
+
+.. rst-class:: float-right without-title
+
+.. caution::
+
+ All PyPI releases are signed with the gpg key
+ `4D8592DF4CE1ED31 <http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D8592DF4CE1ED31>`_.
+
To install from PyPi using :command:`pip`::
pip install passlib
diff --git a/docs/lib/passlib.exc.rst b/docs/lib/passlib.exc.rst
index 10647a3..90565c8 100644
--- a/docs/lib/passlib.exc.rst
+++ b/docs/lib/passlib.exc.rst
@@ -12,9 +12,13 @@ Exceptions
==========
.. autoexception:: MissingBackendError
+.. autoexception:: InternalBackendError
+
.. index::
pair: environmental variable; PASSLIB_MAX_PASSWORD_SIZE
+.. autoexception:: PasswordValueError
+
.. autoexception:: PasswordSizeError
.. autoexception:: PasswordTruncateError
diff --git a/docs/lib/passlib.hash.argon2.rst b/docs/lib/passlib.hash.argon2.rst
index fcc9508..4c1662b 100644
--- a/docs/lib/passlib.hash.argon2.rst
+++ b/docs/lib/passlib.hash.argon2.rst
@@ -56,14 +56,14 @@ Format & Algorithm
==================
The Argon2 hash format is defined by the argon2 reference implementation.
It's compatible with the :ref:`PHC Format <phc-format>` and :ref:`modular-crypt-format`,
-and uses ``$argon2i$`` and ``$argon2d$``
-as it's identifying prefixes for all its strings. An example hash (of ``password``) is:
+and uses ``$argon2i$``, ``$argon2d$``, or ``$argon2id$`` as the identifying prefixes
+for all its strings. An example hash (of ``password``) is:
``$argon2i$v=19$m=512,t=3,p=2$c29tZXNhbHQ$SqlVijFGiPG+935vDSGEsA``
This string has the format :samp:`$argon2{X}$v={V}$m={M},t={T},p={P}${salt}${digest}`, where:
-* :samp:`{X}` is either ``i`` or ``d``, depending on the argon2 variant
+* :samp:`{X}` is either ``i``, ``d``, or ``id``; depending on the argon2 variant
(``i`` in the example).
* :samp:`{V}` is an integer representing the argon2 revision.
@@ -114,9 +114,6 @@ before it. As of the release of Passlib 1.7, it has no known major security iss
Deviations
==========
-* While passlib supports verifying type "d" Argon2 hashes, it does not support generating
- them. This is a deliberate choice, since type "d" is explicitly not designed for password hashing.
-
* This implementation currently encodes all unicode passwords using UTF-8 before hashing,
other implementations may vary, or offer a configurable encoding; though UTF-8 is assumed
to be the default.
diff --git a/docs/lib/passlib.hash.bcrypt.rst b/docs/lib/passlib.hash.bcrypt.rst
index a8c4625..436148c 100644
--- a/docs/lib/passlib.hash.bcrypt.rst
+++ b/docs/lib/passlib.hash.bcrypt.rst
@@ -104,6 +104,8 @@ Bcrypt hashes have the format :samp:`$2a${rounds}${salt}{checksum}`, where:
* :samp:`{rounds}` is a cost parameter, encoded as 2 zero-padded decimal digits,
which determines the number of iterations used via :samp:`{iterations}=2**{rounds}` (rounds is 12 in the example).
* :samp:`{salt}` is a 22 character salt string, using the characters in the regexp range ``[./A-Za-z0-9]`` (``GhvMmNVjRW29ulnudl.Lbu`` in the example).
+ Note that due to padding bits within the encoding, the last character should always be one of ``[.Oeu]``:
+ under some bcrypt implementations, other final characters may result in false negatives when verifying.
* :samp:`{checksum}` is a 31 character checksum, using the same characters as the salt (``AnUtN/LRfe1JsBm1Xu6LE3059z5Tr8m`` in the example).
While BCrypt's basic algorithm is described in its design document [#f1]_,
@@ -122,7 +124,7 @@ Security Issues
and only the first 72 bytes of a password are hashed... all the rest are ignored.
Furthermore, bytes 55-72 are not fully mixed into the resulting hash (citation needed!).
To work around both these issues, many applications first run the password through a message
- digest such as SHA2-256. Passlib offers the premade :doc:`passlib.hash.bcrypt_sha256`
+ digest such as (HMAC-) SHA2-256. Passlib offers the premade :doc:`passlib.hash.bcrypt_sha256`
to take care of this issue.
Deviations
diff --git a/docs/lib/passlib.hash.bcrypt_sha256.rst b/docs/lib/passlib.hash.bcrypt_sha256.rst
index 20ef5ab..a3035b1 100644
--- a/docs/lib/passlib.hash.bcrypt_sha256.rst
+++ b/docs/lib/passlib.hash.bcrypt_sha256.rst
@@ -10,7 +10,7 @@ BCrypt was developed to replace :class:`~passlib.hash.md5_crypt` for BSD systems
It uses a modified version of the Blowfish stream cipher.
It does, however, truncate passwords to 72 bytes, and some other minor quirks
(see :ref:`BCrypt Password Truncation <bcrypt-password-truncation>` for details).
-This class works around that issue by first running the password through SHA2-256.
+This class works around that issue by first running the password through HMAC-SHA2-256.
This class can be used directly as follows::
>>> from passlib.hash import bcrypt_sha256
@@ -18,11 +18,11 @@ This class can be used directly as follows::
>>> # generate new salt, hash password
>>> h = bcrypt_sha256.hash("password")
>>> h
- '$bcrypt-sha256$2a,12$LrmaIX5x4TRtAwEfwJZa1.$2ehnw6LvuIUTM0iz4iz9hTxv21B6KFO'
+ '$bcrypt-sha256$v=2,t=2b,r=12$n79VH.0Q2TMWmt3Oqt9uku$Kq4Noyk3094Y2QlB8NdRT8SvGiI4ft2'
>>> # the same, but with an explicit number of rounds
>>> bcrypt_sha256.using(rounds=13).hash("password")
- '$bcrypt-sha256$2b,13$Mant9jKTadXYyFh7xp1W5.$J8xpPZR/HxH7f1vRCNUjBI7Ev1al0hu'
+ '$bcrypt-sha256$v=2,t=2b,r=13$AmytCA45b12VeVg0YdDT3.$IZTbbJKgJlD5IJoCWhuDUqYjnJwNPlO'
>>> # verify password
>>> bcrypt_sha256.verify("password", h)
@@ -46,25 +46,38 @@ Bcrypt-SHA256 is compatible with the :ref:`modular-crypt-format`, and uses ``$bc
for all it's strings.
An example hash (of ``password``) is:
- ``$bcrypt-sha256$2a,12$LrmaIX5x4TRtAwEfwJZa1.$2ehnw6LvuIUTM0iz4iz9hTxv21B6KFO``
+ ``$bcrypt-sha256$v=2,t=2b,r=12$n79VH.0Q2TMWmt3Oqt9uku$Kq4Noyk3094Y2QlB8NdRT8SvGiI4ft2``
-Bcrypt-SHA256 hashes have the format :samp:`$bcrypt-sha256${variant},{rounds}${salt}${checksum}`, where:
+Version 1 of this format had the format :samp:`$bcrypt-sha256${type},{rounds}${salt}${digest}`.
+Passlib 1.7.3 introduced version 2 of this format, which changed the algorithm slightly (see below),
+and adjusted the format to indicate a version: :samp:`$bcrypt-sha256$v=2,t={type},r={rounds}${salt}${digest}`, where:
-* :samp:`{variant}` is the BCrypt variant in use (usually, as in this case, ``2a``).
+* :samp:`{type}` is the BCrypt variant in use (always ``2b`` under version 2; though ``2a`` was allowed under version 1).
* :samp:`{rounds}` is a cost parameter, encoded as decimal integer,
which determines the number of iterations used via :samp:`{iterations}=2**{rounds}` (rounds is 12 in the example).
-* :samp:`{salt}` is a 22 character salt string, using the characters in the regexp range ``[./A-Za-z0-9]`` (``LrmaIX5x4TRtAwEfwJZa1.`` in the example).
-* :samp:`{checksum}` is a 31 character checksum, using the same characters as the salt (``2ehnw6LvuIUTM0iz4iz9hTxv21B6KFO`` in the example).
+* :samp:`{salt}` is a 22 character salt string, using the characters in the regexp range ``[./A-Za-z0-9]`` (``n79VH.0Q2TMWmt3Oqt9uku`` in the example).
+* :samp:`{digest}` is a 31 character digest, using the same characters as the salt (``Kq4Noyk3094Y2QlB8NdRT8SvGiI4ft2`` in the example).
Algorithm
=========
The algorithm this hash uses is as follows:
* first the password is encoded to ``UTF-8`` if not already encoded.
-* then it's run through SHA2-256 to generate a 32 byte digest.
-* this is encoded using base64, resulting in a 44-byte result
- (including the trailing padding ``=``). For the example ``"password"``,
- the output from this stage would be ``"XohImNooBHFR0OVvjcYpJ3NgPQ1qq73WKhHvch0VQtg="``.
+
+* the next step is to hash the password before handing it off to bcrypt:
+
+ - Under version 2 of this algorithm (the default as of passlib 1.7.3), the password is run
+ through HMAC-SHA2-256, with the HMAC key set to the bcrypt salt (encoded as a 22 character ascii salt string).
+
+ - Under the older version 1 of this algorithm, the password was instead run through plain SHA2-256.
+
+ In either case, this generates a 32 byte digest.
+
+* this hash is then encoded using base64, resulting in a 44-byte result
+ (including the trailing padding ``=``). For the example ``"password"`` and the salt ``"n79VH.0Q2TMWmt3Oqt9uku"``,
+ the output from this stage would be ``b"7CwRr5rxo2JZcVmSDAi/2JPTkvkAdNy20Cz2LwYC0fw="`` (for version 2).
+
* this base64 string is then passed on to the underlying bcrypt algorithm
as the new password to be hashed. See :doc:`passlib.hash.bcrypt` for details
- on it's operation.
+ on it's operation. For the example in the prior line, the resulting
+ bcrypt digest component would be ``"Kq4Noyk3094Y2QlB8NdRT8SvGiI4ft2"``.
diff --git a/docs/lib/passlib.hash.django_std.rst b/docs/lib/passlib.hash.django_std.rst
index 5135f4f..e733b56 100644
--- a/docs/lib/passlib.hash.django_std.rst
+++ b/docs/lib/passlib.hash.django_std.rst
@@ -128,8 +128,6 @@ Interface
.. versionadded:: 1.6
-.. autoclass:: django_bcrypt_sha256()
-
Format
------
An example :class:`!django_pbkdf2_sha256` hash (of ``password``) is:
diff --git a/docs/lib/passlib.hash.ldap_std.rst b/docs/lib/passlib.hash.ldap_std.rst
index d3788c1..1245749 100644
--- a/docs/lib/passlib.hash.ldap_std.rst
+++ b/docs/lib/passlib.hash.ldap_std.rst
@@ -62,6 +62,8 @@ Salted Hashes
=============
.. autoclass:: ldap_salted_md5()
.. autoclass:: ldap_salted_sha1()
+.. autoclass:: ldap_salted_sha256()
+.. autoclass:: ldap_salted_sha512()
These hashes have the format :samp:`{prefix}{data}`.
@@ -95,6 +97,9 @@ The LDAP salted hashes should not be considered very secure.
which is only borderline sufficient to defeat rainbow tables,
and cannot (portably) be increased.
+* The SHA2 salted hashes (SSHA256, SSHA512) are only marginally better.
+ they use the newer SHA2 hash; and 64 bits of entropy in their salt.
+
Plaintext
=========
.. autoclass:: ldap_plaintext()
diff --git a/docs/lib/passlib.hash.rst b/docs/lib/passlib.hash.rst
index 94580e8..0103a4f 100644
--- a/docs/lib/passlib.hash.rst
+++ b/docs/lib/passlib.hash.rst
@@ -38,7 +38,7 @@ Aside from "archaic" schemes such as :class:`!des_crypt`,
most of the password hashes supported by modern Unix flavors
adhere to the :ref:`modular crypt format <modular-crypt-format>`,
allowing them to be easily distinguished when used within the same file.
-The basic of format :samp:`${scheme}${hash}` has also been adopted for use
+Variants of this format's basic :samp:`${scheme}${salt}${digest}` structure have also been adopted for use
by other applications and password hash schemes.
.. _standard-unix-hashes:
@@ -114,8 +114,8 @@ of application-specific hash algorithms:
Active Hashes
-------------
-While most of these schemes generally require an application-specific
-implementation, natively used by any Unix flavor to store user passwords,
+While most of these schemes are generally application-specific,
+and are not natively supported by any Unix OS,
they can be used compatibly along side other modular crypt format hashes:
.. toctree::
@@ -168,6 +168,8 @@ and are supported by OpenLDAP.
* :class:`passlib.hash.ldap_sha1` - SHA1 digest
* :class:`passlib.hash.ldap_salted_md5` - salted MD5 digest
* :class:`passlib.hash.ldap_salted_sha1` - salted SHA1 digest
+* :class:`passlib.hash.ldap_salted_sha256` - salted SHA256 digest
+* :class:`passlib.hash.ldap_salted_sha512` - salted SHA512 digest
.. toctree::
:maxdepth: 1
diff --git a/docs/lib/passlib.hash.sha256_crypt.rst b/docs/lib/passlib.hash.sha256_crypt.rst
index 907ce7a..8d3e950 100644
--- a/docs/lib/passlib.hash.sha256_crypt.rst
+++ b/docs/lib/passlib.hash.sha256_crypt.rst
@@ -70,9 +70,9 @@ An sha256-crypt hash string has the format :samp:`$5$rounds={rounds}${salt}${che
* :samp:`{checksum}` is 43 characters drawn from the same set, encoding a 256-bit
checksum (``cKhJImk5mfuSKV9b3mumNzlbstFUplKtQXXMo4G6Ep5`` in the example).
-There is also an alternate format :samp:`$5${salt}${checksum}`,
-which can be used when the rounds parameter is equal to 5000
-(see the ``implicit_rounds`` parameter above).
+The official implementation allows omitting the ``rounds`` section when it's set to 5000,
+resulting in an alternate hash format: :samp:`$5${salt}${checksum}`.
+(Passlib supports this via the ``implicit_rounds`` constructor parameter).
The algorithm used by SHA256-Crypt is laid out in detail
in the specification document linked to below [#f1]_.
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 5afb30c..c2e29b9 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,2 +1,2 @@
sphinxcontrib-fulltoc
-hg+https://bitbucket.org/ecollins/cloud_sptheme
+cloud_sptheme