summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2019-11-11 18:21:19 -0500
committerEli Collins <elic@assurancetechnologies.com>2019-11-11 18:21:19 -0500
commit33fe23e32994474b92e6132a35bc77e9dcfd214a (patch)
tree501e1cc8486c59610250bb3244c657b11eeffe0c /docs/lib
parent8c3470170628cbf6b18b48d95a69800b79b327ec (diff)
parent5cadf38764107e5b7c436421288ad770354626b4 (diff)
downloadpasslib-33fe23e32994474b92e6132a35bc77e9dcfd214a.tar.gz
Merge from stable
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.hash.scrypt.rst13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/lib/passlib.hash.scrypt.rst b/docs/lib/passlib.hash.scrypt.rst
index 5c3677c..1d45f53 100644
--- a/docs/lib/passlib.hash.scrypt.rst
+++ b/docs/lib/passlib.hash.scrypt.rst
@@ -55,16 +55,21 @@ Scrypt Backends
This class will use the first available of two possible backends:
-1. The C-accelerated `scrypt <https://pypi.python.org/pypi/scrypt>`_ package, if installed.
-2. A pure-python implementation of SCrypt, built into Passlib.
+1. Python stdlib's :func:`hashlib.scrypt` method (only present for Python 3.6+ and OpenSSL 1.1+)
+2. The C-accelerated `scrypt <https://pypi.python.org/pypi/scrypt>`_ package, if installed.
+3. A pure-python implementation of SCrypt, built into Passlib.
.. warning::
- *It is strongly recommended to install the external scrypt package*.
-
+ If :func:`hashlib.scrypt` is not present on your system, it is strongly recommended to install
+ the external scrypt package.
The pure-python backend is intended as a reference and last-resort implementation only;
it is 10-100x too slow to be usable in production at a secure ``rounds`` cost.
+.. versionchanged:: 1.7.2
+
+ Added support for using stdlib's :func:`hashlib.scrypt`
+
Format & Algorithm
==================
This Scrypt hash format is compatible with the :ref:`PHC Format <phc-format>` and :ref:`modular-crypt-format`,