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.
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):