summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-06-10 16:46:32 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-06-10 16:46:32 -0400
commite94db1b7b1d2b531f26cc4295e005daa7638b0f3 (patch)
treeb31fd267dc8fd7eebf8d4f261467644dfcd97219 /docs/lib
parent3e9e3d33197d4c7ec66776582a0be0123b816ef0 (diff)
downloadpasslib-e94db1b7b1d2b531f26cc4295e005daa7638b0f3.tar.gz
deprecating the 'vary_rounds' option -- *very* little security benefit,
and not worth the amount of code it requires to support it. * stripped out vary_rounds from all internal presets * added deprecation warning if it's ever used
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.context-tutorial.rst9
-rw-r--r--docs/lib/passlib.context.rst6
2 files changed, 8 insertions, 7 deletions
diff --git a/docs/lib/passlib.context-tutorial.rst b/docs/lib/passlib.context-tutorial.rst
index acdef7e..2e7cc02 100644
--- a/docs/lib/passlib.context-tutorial.rst
+++ b/docs/lib/passlib.context-tutorial.rst
@@ -42,9 +42,8 @@ Tutorial / Walkthrough
* `Full Integration Example`_
.. todo::
- This tutorial doesn't yet cover the ``vary_rounds`` option,
- or the :ref:`user-categories` system; and a few other parts
- could use elaboration.
+ This tutorial doesn't yet cover the :ref:`user-categories` system;
+ and a few other parts could use elaboration.
.. _context-basic-example:
@@ -415,11 +414,7 @@ All of the documented :ref:`context-options` are allowed.
pbkdf2_sha256__max_rounds = 50000
; set the default rounds to use when encrypting new passwords.
- ; the 'vary' field will cause each new hash to randomly vary
- ; from the default by the specified % of the default (in this case,
- ; 15000 +/- 10% or between 13500 and 16500 rounds).
pbkdf2_sha1__default_rounds = 15000
- pbkdf2_sha1__vary_rounds = 0.1
; applications can choose to treat certain user accounts differently,
; by assigning different types of account to a 'user category',
diff --git a/docs/lib/passlib.context.rst b/docs/lib/passlib.context.rst
index 595a986..7511170 100644
--- a/docs/lib/passlib.context.rst
+++ b/docs/lib/passlib.context.rst
@@ -209,6 +209,12 @@ in ``schemes``, and :samp:`{option}` one of the parameters below:
:samp:`{scheme}__vary_rounds`
+ .. deprecated:: 1.7
+
+ This option has been deprecated as of Passlib 1.7, and will be removed in Passlib 2.0.
+ The (very minimal) security benefit it provides was judged to not be worth code complexity
+ it requires.
+
Instead of using a fixed rounds value (such as specified by
``default_rounds``, above); this option will cause each call
to :meth:`~CryptContext.hash` to vary the default rounds value