Fixed #31985 -- Corrected salted_hmac()'s docstring about supported algorithms.

salted_hmac() validates supported algorithms by checking hashlib
methods.
This commit is contained in:
Francisco Couzo 2020-09-07 05:59:36 -03:00 committed by GitHub
parent 57dadfac3c
commit 5ea1621c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.
"""