summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2017-01-29 16:27:43 -0500
committerEli Collins <elic@assurancetechnologies.com>2017-01-29 16:27:43 -0500
commit83d4c5b5237129e246536b7d686e7d79c4bc0fd2 (patch)
tree1d4b215ac9c0648f089025b66ea4e7afbec31d7a /docs/lib
parente5147cb83e23c1ab146c2e8e85fe91f621cf308a (diff)
downloadpasslib-83d4c5b5237129e246536b7d686e7d79c4bc0fd2.tar.gz
Per issue 83, all "harden_verify" code is now deprecated & a noop.
will be removed completely in 1.8. Rationale: Aside from the arguments in issue 83, performed a timing analysis, and decided harden_verify framework wasn't going to be easily workable to prevent a timing attack anyways (see attached admin/plot_verify_timing.py script). Changes: * dummy_verify() has been kept around, but now uses .verify() against a dummy hash, which is guaranteed to have correct timing (though wastes cpu cycles). * Removed most harden_verify code, treating it as NOOP just like min_verify_time. Similarly, removed most documentation references to.
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.context.rst28
1 files changed, 6 insertions, 22 deletions
diff --git a/docs/lib/passlib.context.rst b/docs/lib/passlib.context.rst
index b2f7248..5ed7413 100644
--- a/docs/lib/passlib.context.rst
+++ b/docs/lib/passlib.context.rst
@@ -180,37 +180,21 @@ Options which directly affect the behavior of the CryptContext instance:
and will be removed in version 1.8.
.. versionchanged:: 1.7
- Per deprecation roadmap above, this option is now ignored.
- See ``harden_verify`` below for a replacement.
+ Per deprecation roadmap above, this option is now ignored.
.. _context-harden-verify-option:
``harden_verify``
- If set to ``true``, CryptContext will pause the first time :meth:`verify`
- is called, in order to calculate the "average" time it would take
- to verify a hash created using the default settings.
-
- Subsequent :meth:`verify` calls using will have their time padded
- to this minimum time, in order to make it harder for an attacker
- to guess which accounts have weak hashes.
-
- Applications may also wish to call :meth:`~CryptContext.dummy_verify` for login
- attempts where the user does not exist, in order to mask which
- users accounts have valid hashes.
+ Companion to ``min_verify_time``, currently ignored.
- This option can be set to ``True`` or ``False`` (the default).
-
- The default (may) be changed in a later 2.x release.
-
- .. warning::
+ .. versionadded:: 1.7
- This feature is new, and adjustments may need to be made
- to when (and how) the code calculates what the "minimum verification time"
- is supposed to be.
+ .. deprecated:: 1.7.1
- .. versionadded:: 1.7
+ This option is ignored by 1.7.1, and will be removed in 1.8
+ along with ``min_verify_time``.
.. _context-algorithm-options: