summaryrefslogtreecommitdiff
path: root/passlib/handlers/des_crypt.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-03-12 22:48:23 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-03-12 22:48:23 -0400
commitba4550d9dc9d12bf3ee714fb05040ebbf4adb8e8 (patch)
treee264eb2edf72efbeaf40d1616e4ffb2b528bde2e /passlib/handlers/des_crypt.py
parente89ebdf93b92dc018bd3ee1542cc4416b5024ab4 (diff)
downloadpasslib-ba4550d9dc9d12bf3ee714fb05040ebbf4adb8e8.tar.gz
misc bugfixes
* removed cisco_type7 config string, conflicted w/ empty password * fixed unicode type issue in cisco_type7, win32.nthash * bsdi_crypt.min_rounds now 1 (0 results in identical hashes) * fixed unicode type issue in UPASS_TABLE tests for plaintext, ldap_plaintext * relocated test vectors from test_win32 to lmhash/nthash * 8bit test for UnsaltedHash * fuzz testing expanded to use 5-99 char passwords, and 1/10000 are empty *
Diffstat (limited to 'passlib/handlers/des_crypt.py')
-rw-r--r--passlib/handlers/des_crypt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/handlers/des_crypt.py b/passlib/handlers/des_crypt.py
index f663a39..a65d147 100644
--- a/passlib/handlers/des_crypt.py
+++ b/passlib/handlers/des_crypt.py
@@ -275,7 +275,7 @@ class bsdi_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler
#--HasRounds--
default_rounds = 5001
- min_rounds = 0
+ min_rounds = 1
max_rounds = 16777215 # (1<<24)-1
rounds_cost = "linear"