diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2012-04-17 23:14:51 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2012-04-17 23:14:51 -0400 |
| commit | 64ab6fc89b497efa9169f11d55251e417c4db0ba (patch) | |
| tree | b3f6f5dc27b87a6bc90cb3686fa98239ee8ff053 /CHANGES | |
| parent | 8eb4c4d3b58eec6802c698ddbf357b2fd243a68c (diff) | |
| parent | cd029846fdc0c3d7ffc7f53caad4579e7e0e8725 (diff) | |
| download | passlib-ironpython-support-dev.tar.gz | |
Merge from defaultironpython-support-dev
Diffstat (limited to 'CHANGES')
| -rw-r--r-- | CHANGES | 61 |
1 files changed, 39 insertions, 22 deletions
@@ -53,6 +53,9 @@ Release History * The :doc:`ldap salted digests </lib/passlib.hash.ldap_std>` now support salts from 4-16 bytes [issue 30]. + * :class:`bsdi_crypt` now issues a warning if an even number of rounds + is requested by the application, due to a known weakness in DES. + * All hashes will now throw :exc:`~passlib.exc.PasswordSizeError` if the provided password is larger than 4096 characters. @@ -66,32 +69,45 @@ Release History .. currentmodule:: passlib.context * :class:`~CryptContext` now supports a :ref:`passprep <passprep>` option, - which runs all passwords through SASLPrep (:rfc:`4013`) + which can be used to run all passwords through SASLPrep (:rfc:`4013`), in order to normalize their unicode representation before hashing [issue 24]. - * Internals of :class:`CryptPolicy` have been - re-written drastically. Should now be stricter (and more informative) - about invalid values, and common :class:`CryptContext` - operations should all have much shorter code-paths. + * The :class:`!CryptContext` option + :ref:`min_verify_time <min-verify-time>` has been deprecated, + will be ignored in release 1.7, and will be removed in release 1.8. + + * The internals of :class:`!CryptContext` have been rewritten + drastically. It's methods should now be stricter and more informative + about invalid values; and common :class:`!CryptContext` operations + should be faster, and have shorter internal code paths. - * Config parsing now done with :class:`SafeConfigParser`. - :meth:`CryptPolicy.from_path` and :meth:`CryptPolicy.from_string` - previously used :class:`!ConfigParser` interpolation. - Release 1.5 switched to :class:`SafeConfigParser`, + * The :attr:`!CryptContext.policy` attr, and the supporting + :class:`!CryptPolicy` class, have been deprecated in their entirety. + + They will not be removed until Passlib 1.8, to give applications + which used these features time to migrate. Applications which did + not use either of these features explicitly should be unaffected by + this change. + + The functionality of :class:`!CryptPolicy` has been merged + into the :class:`CryptContext` class, in order to simplify + the exposed interface. Information on migrating can be found + in the :class:`CryptPolicy` documentation, as well as in + the :exc:`DeprecationWarning` messages issued when a :class:`!CryptPolicy` + is invoked. + + * :meth:`CryptContext.from_path` and :meth:`CryptContext.from_string` + (and the legacy :class:`CryptPolicy` object) now use stdlib's + :class:`!SafeConfigParser`. + + Previous releases used the original :class:`!ConfigParser` interpolation. + Passlib 1.5 switched to :class:`SafeConfigParser`, but kept support for the old format as a (deprecated) fallback. This fallback has been removed in 1.6; any - legacy config files may need to escape raw ``%`` characters + legacy config files may need to double any raw ``%`` characters in order to load successfully. - * The main CryptContext methods (e.g. :meth:`~CryptContext.encrypt`, - and :meth:`~CryptContext.verify`) will now consistently raise - a :exc:`TypeError` when called with ``hash=None`` or another - non-string type, to match the :doc:`password-hash-api`. - Under previous releases, they might return ``False``, - raise :exc:`ValueError`, or raise :exc:`TypeError`, - depending on the specific method and context settings. - Utils .. currentmodule:: passlib.utils.handlers @@ -134,12 +150,13 @@ Release History * deprecated some unused functions in :mod:`!passlib.utils`, they will be removed in release 1.7. - * The :class:`!CryptContext` option - :ref:`min_verify_time <min-verify-time>` has been deprecated, - will be ignored in release 1.7, and will be removed in release 1.8. - Other + * The api for the :mod:`passlib.apache` module has been updated + to add more flexibility, and to fix some ambiguous method + and keyword names. The old names are still supported, but deprecated, + and will be removed in Passlib 1.8. + * Handle platform-specific error strings returned by :func:`!crypt.crypt`. * Passlib is now source-compatible with Python 2.5+ and Python 3, |
