diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2016-02-11 15:11:35 -0500 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2016-02-11 15:11:35 -0500 |
commit | 74894c9ebe1994823edd210262e6fc9b729e18f8 (patch) | |
tree | 8b8cf648c6474d0ba959b9a97282e819f889f10a /admin | |
parent | 774037a9e9b2d6fb5c3fd533e25ca1d29585962f (diff) | |
download | passlib-74894c9ebe1994823edd210262e6fc9b729e18f8.tar.gz |
passlib.pwd: big cleanup pass, removing code that won't be ready for release
* split generate() into genword() & genphrase() --
APIs are just too different to keep combined.
* renamed internal calc funcs to better reflect their purpose.
* commented out PhraseGenerator's min_chars code, can't confirm
it's doing correct thing.
* commented out password strength estimator, too half-baked.
* tried to simplify SequenceGenerator attributes.
* genword(): defined some base charsets to work with
* genphrase(): wordsets now stored uncompressed (not really that big,
and .whl will compress everything for transport).
* fleshed out UTs for genword() & genphrase()
* updated docs
Diffstat (limited to 'admin')
-rw-r--r-- | admin/benchmarks.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py index 3a980c0..9c294a2 100644 --- a/admin/benchmarks.py +++ b/admin/benchmarks.py @@ -302,13 +302,13 @@ def test_pbkdf2_sha256(): #============================================================================= @benchmark.constructor() def test_average_entropy(): - from passlib.pwd import _average_entropy + from passlib.pwd import _self_info_rate testc = "abcdef"*100000 def helper(): - _average_entropy(testc) - _average_entropy(testc, True) - _average_entropy(iter(testc)) - _average_entropy(iter(testc), True) + _self_info_rate(testc) + _self_info_rate(testc, True) + _self_info_rate(iter(testc)) + _self_info_rate(iter(testc), True) return helper #============================================================================= |