summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSaJH <wogur981208@gmail.com>2025-08-22 15:32:09 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-08-25 14:45:16 +0200
commit0246f478882c26bc1fe293224653074cd46a90d0 (patch)
treeed94f807ae565c16be1ad634654bae98ea7596a9 /docs
parent3ba24c18e70dd242ae237fd955fb8be30f99bc4d (diff)
Fixed #36546 -- Deprecated django.utils.crypto.constant_time_compare() in favor of hmac.compare_digest().
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/releases/6.0.txt3
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 0e2a7ffb36..43c78ca041 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -53,6 +53,8 @@ details on these changes.
* The ``django.core.mail.forbid_multi_line_headers()`` and
``django.core.mail.message.sanitize_address()`` functions will be removed.
+* The ``django.utils.crypto.constant_time_compare()`` function will be removed.
+
.. _deprecation-removed-in-6.1:
6.1
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt
index e54b9788ce..f131ac7c0d 100644
--- a/docs/releases/6.0.txt
+++ b/docs/releases/6.0.txt
@@ -570,6 +570,9 @@ Miscellaneous
* The undocumented ``django.core.mail.forbid_multi_line_headers()`` and
``django.core.mail.message.sanitize_address()`` functions are deprecated.
+* The ``django.utils.crypto.constant_time_compare()`` function is deprecated
+ because it is merely an alias of :py:func:`hmac.compare_digest`.
+
Features removed in 6.0
=======================