Passlib 1.8¶
1.8.0 (NOT YET RELEASED)¶
Overview¶
Warning
1.8 is under development, and tenatively scheduled for release in late 2017.
See https://passlib.readthedocs.io/en/stable/history/1.7.html for the latest release.
Requirements¶
Passlib now requires Python >= 3.5. As of this release, support for Python 2.x, 3.3, and 3.4 has been dropped. If you need to use Passlib on an earlier version of Python, please use the Passlib 1.7 series, which will be maintained in bugfix-only mode for few more releases. (See :issue:`119` for rationale).
Backwards Incompatibilities¶
The following previously-deprecated features were removed, though few of these should be in use, as they’ve been deprecated for a number of years / releases:
passlib.apache:
passlib.apache: A number of deprecated options & methods were removed fromHtpasswdFileandHtdigest:
Support for setting
encoding=Noneremoved, usereturn_unicode=Trueinstead.
autoload=Falsekeyword removed, usenew=Trueinstead.
load()method no longer supportsforce=False, useload_if_changed()instead.
update()alias removed, useset_password()instead.
find()alias removed, useget_hash()instead.
verify()alias removed, usecheck_password()instead.
defaultkeyword removed, usedefault_schemeinstead.passlib.context:
The
passlib.context.CryptPolicyclass was removed. Code should be using the equivalentCryptContext()methods instead.Concurrent with that,
CryptContext’spolicykeyword and attribute were removed, along withLazyCryptContext’screate_policykeyword.
CryptContext.replace()alias removed, useCryptContext.using()instead.
CryptContext’smin_verify_timeandharden_verifykeywords removed.passlib.hash:
passlib.hash.unix_fallbackwas removed, useunix_disabledinstead.other modules:
In
passlib.ext.django, support forCONFIG=Nonewas dropped.The deprecated
passlib.win32module was removed, usepasslib.hash.lmhashhash instead.internal details:
The
passlib.hash.nthash.raw_nthash()alias was removed, usenthash.raw()instead.In
passlib.utils.handlers:StaticHandlersubclasses must now always implement_calc_checksum(), the old genhash-based style is no longer supported or checked for.The deprecated
passlib.utils.des.mdes_encrypt_int_block()method was removed.The
passlib.utils.pbkdf2.norm_hash_name()alias was removed, usepasslib.crypto.digest.norm_hash_name()instead.
Many PY2 compatibility helper inside
passlib.utils.compathave been removed.