diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2016-06-15 18:07:59 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2016-06-15 18:07:59 -0400 |
| commit | ce23c2ab15e70b612cbd902bf0513c0cf6d734e9 (patch) | |
| tree | 3b44c5799cd1aff93244d42d2c87e891b4b60e6d /admin | |
| parent | fbe95e1cd44c27c9b32dc8dfa3008b59ffbc9baa (diff) | |
| download | passlib-ce23c2ab15e70b612cbd902bf0513c0cf6d734e9.tar.gz | |
renamed PasswordHandler.replace() back to PasswordHandler.using()
this basically reversed rev 5c41b0153d4f; after using it a bit more,
decided the name didn't indicate as well what the method was doing.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/benchmarks.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py index c7ce7b1..fb02b39 100644 --- a/admin/benchmarks.py +++ b/admin/benchmarks.py @@ -201,7 +201,7 @@ def test_bcrypt_builtin(): import os os.environ['PASSLIB_BUILTIN_BCRYPT'] = 'enabled' bcrypt.set_backend("builtin") - handler = bcrypt.replace(rounds = 10) + handler = bcrypt.using(rounds = 10) def helper(): hash = handler.hash(SECRET) handler.verify(SECRET, hash) @@ -213,7 +213,7 @@ def test_bcrypt_ffi(): "test bcrypt 'bcrypt' backend" from passlib.hash import bcrypt bcrypt.set_backend("bcrypt") - handler = bcrypt.replace(rounds=8) + handler = bcrypt.using(rounds=8) def helper(): hash = handler.hash(SECRET) handler.verify(SECRET, hash) @@ -245,7 +245,7 @@ def test_ldap_salted_md5(): def test_phpass(): """test phpass""" from passlib.hash import phpass - handler = phpass.replace(salt='.'*8, rounds=16) + handler = phpass.using(salt='.'*8, rounds=16) def helper(): hash = handler.hash(SECRET) handler.verify(SECRET, hash) @@ -255,7 +255,7 @@ def test_phpass(): @benchmark.constructor() def test_sha1_crypt(): from passlib.hash import sha1_crypt - handler = sha1_crypt.replace(salt='.'*8, rounds=10000) + handler = sha1_crypt.using(salt='.'*8, rounds=10000) def helper(): hash = handler.hash(SECRET) handler.verify(SECRET, hash) |
