comparison MoinMoin/support/passlib/handlers/sha1_crypt.py @ 6096:86a41c2bedec

upgrade passlib from 1.6.2 to 1.6.5
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 05 Sep 2016 23:44:04 +0200
parents d72a5e95c7c0
children 7f0616feeae9
comparison
equal deleted inserted replaced
6095:465cb6f5c6d7 6096:86a41c2bedec
45 Defaults to 8 bytes, but can be any value between 0 and 64. 45 Defaults to 8 bytes, but can be any value between 0 and 64.
46 46
47 :type rounds: int 47 :type rounds: int
48 :param rounds: 48 :param rounds:
49 Optional number of rounds to use. 49 Optional number of rounds to use.
50 Defaults to 64000, must be between 1 and 4294967295, inclusive. 50 Defaults to 480000, must be between 1 and 4294967295, inclusive.
51 51
52 :type relaxed: bool 52 :type relaxed: bool
53 :param relaxed: 53 :param relaxed:
54 By default, providing an invalid value for one of the other 54 By default, providing an invalid value for one of the other
55 keywords will result in a :exc:`ValueError`. If ``relaxed=True``, 55 keywords will result in a :exc:`ValueError`. If ``relaxed=True``,
75 min_salt_size = 0 75 min_salt_size = 0
76 max_salt_size = 64 76 max_salt_size = 64
77 salt_chars = uh.HASH64_CHARS 77 salt_chars = uh.HASH64_CHARS
78 78
79 #--HasRounds-- 79 #--HasRounds--
80 default_rounds = 64000 # current passlib default 80 default_rounds = 480000 # current passlib default
81 min_rounds = 1 # really, this should be higher. 81 min_rounds = 1 # really, this should be higher.
82 max_rounds = 4294967295 # 32-bit integer limit 82 max_rounds = 4294967295 # 32-bit integer limit
83 rounds_cost = "linear" 83 rounds_cost = "linear"
84 84
85 #=================================================================== 85 #===================================================================