summaryrefslogtreecommitdiff
path: root/docs/history/1.8.rst
blob: f13a130b51af73d159f7e630e4ad779adbc854b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.. _whats-new:

===========
Passlib 1.8
===========

.. rst-class:: emphasize-children toc-always-open

**1.8.0** (NOT YET RELEASED)
============================

Overview
--------

.. rst-class:: without-title

.. 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 :doc:`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:**

    .. py:currentmodule:: passlib.apache

    *  :mod:`passlib.apache`: A number of deprecated options & methods were removed from
       :class:`HtpasswdFile` and :class:`Htdigest`:

       - Support for setting ``encoding=None`` removed, use ``return_unicode=True`` instead.
       - ``autoload=False`` keyword removed, use ``new=True`` instead.
       - :meth:`!load` method no longer supports ``force=False``, use :meth:`~HtpasswdFile.load_if_changed` instead.
       - :meth:`!update` alias removed, use :meth:`~HtpasswdFile.set_password` instead.
       - :meth:`!find` alias removed, use :meth:`~HtpasswdFile.get_hash` instead.
       - :meth:`!verify` alias removed, use :meth:`~HtpasswdFile.check_password` instead.
       - ``default`` keyword removed, use ``default_scheme`` instead.

    **passlib.context:**

    .. py:currentmodule:: passlib.context

    * The :class:`!passlib.context.CryptPolicy` class was removed.
      Code should be using the equivalent :meth:`~CryptContext` methods instead.

    * Concurrent with that, :class:`CryptContext`'s ``policy`` keyword and attribute
      were removed, along with :class:`LazyCryptContext`'s ``create_policy`` keyword.

    * :meth:`!CryptContext.replace` alias removed, use :meth:`CryptContext.using` instead.

    * :class:`CryptContext`'s ``min_verify_time`` and ``harden_verify`` keywords removed.

    **passlib.hash:**

    .. py:currentmodule:: passlib.hash

    * :class:`!passlib.hash.unix_fallback` was removed, use :class:`~unix_disabled` instead.

    **other modules:**

    * In :mod:`passlib.ext.django`, support for ``CONFIG=None`` was dropped.

    * The deprecated :mod:`!passlib.win32` module was removed, use :class:`passlib.hash.lmhash` hash instead.

    **internal details:**

    .. py:currentmodule:: passlib.hash

    * The :meth:`!passlib.hash.nthash.raw_nthash` alias was removed, use :meth:`nthash.raw` instead.

    * In :mod:`passlib.utils.handlers`: :class:`!StaticHandler` subclasses must now always implement
      :meth:`!_calc_checksum`, the old genhash-based style is no longer supported or checked for.

    * The deprecated :func:`passlib.utils.des.mdes_encrypt_int_block` method was removed.

    * The :func:`passlib.utils.pbkdf2.norm_hash_name` alias was removed, use :func:`passlib.crypto.digest.norm_hash_name` instead.