From 8583409d34d9491553f6c8e545653842518f311c Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Tue, 17 Apr 2012 19:37:20 -0400 Subject: retuned default_rounds for a few hashes based on benchmarks --- passlib/handlers/sha2_crypt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'passlib/handlers/sha2_crypt.py') diff --git a/passlib/handlers/sha2_crypt.py b/passlib/handlers/sha2_crypt.py index e344912..29a18de 100644 --- a/passlib/handlers/sha2_crypt.py +++ b/passlib/handlers/sha2_crypt.py @@ -253,7 +253,6 @@ class _SHA2_Common(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, max_salt_size = 16 salt_chars = uh.HASH64_CHARS - default_rounds = 40000 # current passlib default min_rounds = 1000 # bounds set by spec max_rounds = 999999999 # bounds set by spec rounds_cost = "linear" @@ -393,6 +392,7 @@ class sha256_crypt(_SHA2_Common): name = "sha256_crypt" ident = u("$5$") checksum_size = 43 + default_rounds = 80000 # current passlib default #========================================================= # backends @@ -448,6 +448,7 @@ class sha512_crypt(_SHA2_Common): ident = u("$6$") checksum_size = 86 _cdb_use_512 = True + default_rounds = 60000 # current passlib default #========================================================= # backend -- cgit v1.2.1