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 fromHtpasswdFile
andHtdigest
:
- Support for setting
encoding=None
removed, usereturn_unicode=True
instead.autoload=False
keyword removed, usenew=True
instead.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.default
keyword removed, usedefault_scheme
instead.passlib.context:
- The
passlib.context.CryptPolicy
class was removed. Code should be using the equivalentCryptContext()
methods instead.- Concurrent with that,
CryptContext
’spolicy
keyword and attribute were removed, along withLazyCryptContext
’screate_policy
keyword.CryptContext.replace()
alias removed, useCryptContext.using()
instead.CryptContext
’smin_verify_time
andharden_verify
keywords removed.passlib.hash:
passlib.hash.unix_fallback
was removed, useunix_disabled
instead.other modules:
- In
passlib.ext.django
, support forCONFIG=None
was dropped.- The deprecated
passlib.win32
module was removed, usepasslib.hash.lmhash
hash instead.internal details:
- The
passlib.hash.nthash.raw_nthash()
alias was removed, usenthash.raw()
instead.- In
passlib.utils.handlers
:StaticHandler
subclasses 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.compat
have been removed.