diff options
author | Jack Lloyd <[email protected]> | 2018-07-13 21:24:55 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-07-13 21:24:55 -0400 |
commit | f05cd9faf4140c38bbb10758fc010843b6bdead3 (patch) | |
tree | 67220e816e9a737661663991f1fcd1c4a66d0632 /src/scripts | |
parent | 3e616dd02b7858865c4b8312312b6f66a96f4d33 (diff) |
Update password hashing default settings
Bcrypt work factor 10 is looking pretty low these days, as is 100K
iterations of PBKDF2. Increase bcrypt to 12 and PBKDF2 to 150K,
and also transition passhash9 to using SHA-512 instead of SHA-256.
Also document bcrypt better, and add speed tests for bcrypt and passhash9
Diffstat (limited to 'src/scripts')
-rwxr-xr-x | src/scripts/test_cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py index 340d87e6b..6c0355a18 100755 --- a/src/scripts/test_cli.py +++ b/src/scripts/test_cli.py @@ -542,7 +542,7 @@ def cli_speed_tests(): logging.error("Unexpected line %s", line) math_ops = ['mp_mul', 'modexp', 'random_prime', 'inverse_mod', 'rfc3394', 'fpe_fe1', - 'bn_redc', 'nistp_redc', 'ecc_mult', 'ecc_ops', 'os2ecp'] + 'bn_redc', 'nistp_redc', 'ecc_mult', 'ecc_ops', 'os2ecp', 'bcrypt', 'passhash9'] format_re = re.compile(r'^.* [0-9]+ /sec; [0-9]+\.[0-9]+ ms/op .*\([0-9]+ (op|ops) in [0-9]+(\.[0-9]+)? ms\)') for op in math_ops: |