Stop using vary_rounds with passlib
authorJeremy Stanley <fungi@yuggoth.org>
Sun, 14 May 2017 17:42:40 +0000 (17:42 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 14 May 2017 17:42:40 +0000 (17:42 +0000)
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

index a34dab9..3e0db0a 100644 (file)
@@ -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):