mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #27468 -- Added tests and release notes for signing.dumps()/loads() changes.
Follow up to 71c4fb7beb.
This commit is contained in:
@@ -418,9 +418,10 @@ Security
|
||||
origins. If you need the previous behavior, explicitly set
|
||||
:setting:`SECURE_REFERRER_POLICY` to ``None``.
|
||||
|
||||
* The default :class:`django.core.signing.Signer` algorithm is changed to the
|
||||
SHA-256. Support for signatures made with the old SHA-1 algorithm remains
|
||||
until Django 4.0.
|
||||
* The default algorithm of :class:`django.core.signing.Signer`,
|
||||
:meth:`django.core.signing.loads`, and :meth:`django.core.signing.dumps` is
|
||||
changed to the SHA-256. Support for signatures made with the old SHA-1
|
||||
algorithm remains until Django 4.0.
|
||||
|
||||
Also, the new ``algorithm`` parameter of the
|
||||
:class:`~django.core.signing.Signer` allows customizing the hashing
|
||||
|
||||
Reference in New Issue
Block a user