comparison MoinMoin/support/passlib/apps.py @ 6130:7f0616feeae9

upgrade passlib to 1.7.1, update CHANGES
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 Apr 2017 22:53:58 +0200
parents 86a41c2bedec
children
comparison
equal deleted inserted replaced
6129:7f12cf241d5e 6130:7f0616feeae9
72 # choose some reasonbly strong schemes 72 # choose some reasonbly strong schemes
73 schemes=["sha512_crypt", "sha256_crypt"], 73 schemes=["sha512_crypt", "sha256_crypt"],
74 74
75 # set some useful global options 75 # set some useful global options
76 default="sha256_crypt" if sys_bits < 64 else "sha512_crypt", 76 default="sha256_crypt" if sys_bits < 64 else "sha512_crypt",
77 all__vary_rounds = 0.1,
78 77
79 # set a good starting point for rounds selection 78 # set a good starting point for rounds selection
80 sha512_crypt__min_rounds = 535000, 79 sha512_crypt__min_rounds = 535000,
81 sha256_crypt__min_rounds = 535000, 80 sha256_crypt__min_rounds = 535000,
82 81
111 django16_context = LazyCryptContext( 110 django16_context = LazyCryptContext(
112 schemes=_django16_schemes, 111 schemes=_django16_schemes,
113 deprecated=_django10_schemes, 112 deprecated=_django10_schemes,
114 ) 113 )
115 114
115 django110_context = LazyCryptContext(
116 schemes=["django_pbkdf2_sha256", "django_pbkdf2_sha1",
117 "django_argon2", "django_bcrypt", "django_bcrypt_sha256",
118 "django_disabled"],
119 )
120
116 # this will always point to latest version 121 # this will always point to latest version
117 django_context = django16_context 122 django_context = django110_context
118 123
119 #============================================================================= 124 #=============================================================================
120 # ldap 125 # ldap
121 #============================================================================= 126 #=============================================================================
122 std_ldap_schemes = ["ldap_salted_sha1", "ldap_salted_md5", 127 std_ldap_schemes = ["ldap_salted_sha1", "ldap_salted_md5",