diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2019-11-11 15:15:07 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2019-11-11 15:15:07 -0500 |
| commit | f339799ff1c60dc57347f403e15371d934f3f060 (patch) | |
| tree | c1f47e2fb59d67b7dc6289c129c14a4bad30ddd3 /docs | |
| parent | 190e4a35eb29619f52dd17fec66e5638dc0b2173 (diff) | |
| download | passlib-f339799ff1c60dc57347f403e15371d934f3f060.tar.gz | |
passlib.crypto.scrypt: add support for hashlib.scrypt() backend (fixes issue 86)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/history/1.7.rst | 5 | ||||
| -rw-r--r-- | docs/lib/passlib.hash.scrypt.rst | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/docs/history/1.7.rst b/docs/history/1.7.rst index 9b3fbbf..4b066fb 100644 --- a/docs/history/1.7.rst +++ b/docs/history/1.7.rst @@ -18,6 +18,11 @@ New Features Now defaults to "ID" hashes instead of "I" hashes, but this can be overridden via ``type`` keyword. (:issue:`101`) +* .. py:currentmodule:: passlib.hash + + :class:`scrypt`: Now uses python 3.6 stdlib's :func:`hashlib.scrypt` as backend, + if present (:issue:`86`). + Bugfixes -------- 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`, |
