summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-06-04 01:33:57 -0400
committerEli Collins <elic@assurancetechnologies.com>2011-06-04 01:33:57 -0400
commitd915c25dcfcf02c88b78bbcb5dae3a8a44d14ccf (patch)
treec153d6321b2af7331fb8f7d1e2995ae92e125bdd /docs
parent4c2cc7645212952daedc9080c20c32083fbeb7ce (diff)
downloadpasslib-d915c25dcfcf02c88b78bbcb5dae3a8a44d14ccf.tar.gz
bugfix: changed CryptPolicy to use SafeConfigParser (as it really should have all along)
* this may break parsing of some files which have "vary_rounds = 10%", that should now read "vary_rounds = 10%%". * currently detecting that case, and falling back to old behavior + userwarning * passlib 1.6 will let this be fatal.
Diffstat (limited to 'docs')
-rw-r--r--docs/lib/passlib.context-options.rst3
-rw-r--r--docs/lib/passlib.context-usage.rst3
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/lib/passlib.context-options.rst b/docs/lib/passlib.context-options.rst
index 8a6a19e..3792da1 100644
--- a/docs/lib/passlib.context-options.rst
+++ b/docs/lib/passlib.context-options.rst
@@ -206,7 +206,8 @@ A sample policy file:
min_verify_time = 0.1
#set some common options for all schemes
- all.vary_rounds = 10%
+ all.vary_rounds = 10%%
+ ; NOTE the '%' above has to be escaped due to configparser interpolation
#setup some hash-specific defaults
sha512_crypt.min_rounds = 40000
diff --git a/docs/lib/passlib.context-usage.rst b/docs/lib/passlib.context-usage.rst
index 8464a1e..8609d6d 100644
--- a/docs/lib/passlib.context-usage.rst
+++ b/docs/lib/passlib.context-usage.rst
@@ -142,7 +142,8 @@ applications with advanced policy requirements may want to create a hash policy
;the 'vary' field will cause each new hash to randomly vary
;from the default by the specified %.
pbkdf2_sha1.default_rounds = 20000
- pbkdf2_sha1.vary_rounds = 10%
+ pbkdf2_sha1.vary_rounds = 10%%
+ ; NOTE the '%' above has to be doubled due to configparser interpolation
;applications can choose to treat certain user accounts differently,
;by assigning different types of account to a 'user category',