diff options
| author | Francisco Couzo <franciscouzo@gmail.com> | 2020-09-07 05:59:36 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-07 10:59:36 +0200 |
| commit | 5ea1621c724e765c9a642a1b3b6e83419fda920b (patch) | |
| tree | 3cad13f86663abac91084a373e00d0bc8fccde3c /django/utils | |
| parent | 57dadfac3cfae050c49b80c5ac56008acdef5196 (diff) | |
Fixed #31985 -- Corrected salted_hmac()'s docstring about supported algorithms.
salted_hmac() validates supported algorithms by checking hashlib
methods.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/crypto.py b/django/utils/crypto.py index db19db91d3..3837e64e05 100644 --- a/django/utils/crypto.py +++ b/django/utils/crypto.py @@ -20,7 +20,7 @@ def salted_hmac(key_salt, value, secret=None, *, algorithm='sha1'): """ Return the HMAC of 'value', using a key generated from key_salt and a secret (which defaults to settings.SECRET_KEY). Default algorithm is SHA1, - but any algorithm name supported by hashlib.new() can be passed. + but any algorithm name supported by hashlib can be passed. A different key_salt should be passed in for every application of HMAC. """ |
