From: Jeremy Stanley Date: Sun, 14 May 2017 17:42:40 +0000 (+0000) Subject: Stop using vary_rounds with passlib X-Git-Tag: 0.0.1~160 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=c135b310950098c192b4e8f17673604630c5fc30;p=mudpy.git Stop using vary_rounds with passlib The passlib library has deprecated the vary_rounds KDF parameter since it's basically pointless as long as a strong salt is employed. Proactively remove the reference as it will no longer be accepted by passlib 2.0. --- diff --git a/mudpy/password.py b/mudpy/password.py index a34dab9..3e0db0a 100644 --- a/mudpy/password.py +++ b/mudpy/password.py @@ -7,8 +7,8 @@ import passlib.context _CONTEXT = passlib.context.CryptContext( - all__vary_rounds=0.1, default="pbkdf2_sha512", - pbkdf2_sha512__default_rounds=1000, schemes=["pbkdf2_sha512"]) + default="pbkdf2_sha512", pbkdf2_sha512__default_rounds=1000, + schemes=["pbkdf2_sha512"]) def create(password):