From c135b310950098c192b4e8f17673604630c5fc30 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sun, 14 May 2017 17:42:40 +0000 Subject: [PATCH] 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. --- mudpy/password.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.11.0