comparison MoinMoin/support/passlib/handlers/fshp.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
38 Optional number of bytes to use when autogenerating new salts. 38 Optional number of bytes to use when autogenerating new salts.
39 Defaults to 16 bytes, but can be any non-negative value. 39 Defaults to 16 bytes, but can be any non-negative value.
40 40
41 :param rounds: 41 :param rounds:
42 Optional number of rounds to use. 42 Optional number of rounds to use.
43 Defaults to 100000, must be between 1 and 4294967295, inclusive. 43 Defaults to 480000, must be between 1 and 4294967295, inclusive.
44 44
45 :param variant: 45 :param variant:
46 Optionally specifies variant of FSHP to use. 46 Optionally specifies variant of FSHP to use.
47 47
48 * ``0`` - uses SHA-1 digest (deprecated). 48 * ``0`` - uses SHA-1 digest (deprecated).
77 max_salt_size = None 77 max_salt_size = None
78 78
79 #--HasRounds-- 79 #--HasRounds--
80 # FIXME: should probably use different default rounds 80 # FIXME: should probably use different default rounds
81 # based on the variant. setting for default variant (sha256) for now. 81 # based on the variant. setting for default variant (sha256) for now.
82 default_rounds = 100000 # current passlib default, FSHP uses 4096 82 default_rounds = 480000 # current passlib default, FSHP uses 4096
83 min_rounds = 1 # set by FSHP 83 min_rounds = 1 # set by FSHP
84 max_rounds = 4294967295 # 32-bit integer limit - not set by FSHP 84 max_rounds = 4294967295 # 32-bit integer limit - not set by FSHP
85 rounds_cost = "linear" 85 rounds_cost = "linear"
86 86
87 #--variants-- 87 #--variants--