mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
whatsnew: hmac *digestmod* accepts strings, and default is deprecated. (#17276)
This commit is contained in:
parent
b1376b5119
commit
3d234837ed
2 changed files with 16 additions and 4 deletions
|
@ -23,9 +23,8 @@ This module implements the HMAC algorithm as described by :rfc:`2104`.
|
|||
defaults to the :data:`hashlib.md5` constructor.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
Parameter *key* can be a bytes or bytearray object. Parameter *msg* can
|
||||
be of any type supported by :mod:`hashlib`.
|
||||
|
||||
Parameter *key* can be a bytes or bytearray object.
|
||||
Parameter *msg* can be of any type supported by :mod:`hashlib`.
|
||||
Paramter *digestmod* can be the name of a hash algorithm.
|
||||
|
||||
.. deprecated:: 3.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue