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/lib/passhash/bcrypt/bcrypt.h | |
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/lib/passhash/bcrypt/bcrypt.h')
-rw-r--r-- | src/lib/passhash/bcrypt/bcrypt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/passhash/bcrypt/bcrypt.h b/src/lib/passhash/bcrypt/bcrypt.h index 7d46e836c..cdf9cf3d1 100644 --- a/src/lib/passhash/bcrypt/bcrypt.h +++ b/src/lib/passhash/bcrypt/bcrypt.h @@ -33,7 +33,7 @@ class RandomNumberGenerator; */ std::string BOTAN_PUBLIC_API(2,0) generate_bcrypt(const std::string& password, RandomNumberGenerator& rng, - uint16_t work_factor = 10, + uint16_t work_factor = 12, char version = 'a'); /** |