You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This specification defines the following algorithms:
o SHA2-256 (mandatory to implement)
o SHA2-512/256 (as a backup algorithm)
o MD5 (for backward compatibility).
picnixz
changed the title
Support digest authentication algorithm SHA-256
Support HTTP digest authentication algorithm SHA-256 as per RFC-7617
Dec 24, 2024
We do support SHA-512-256 in hashlib if the underlying OpenSSL library implements it. This is the truncated SHA-2-512. This can be constructed via hashlib.new('SHA512_256') (other names are available, see https://docs.openssl.org/3.3/man7/EVP_MD-SHA2/#identities) (there is no dedicated constructor for this function though).
Feature or enhancement
Proposal:
Support SHA-256 digest authentication following RFC7616 - https://datatracker.ietf.org/doc/html/rfc7616
CPython currently supports MD5 and SHA1 only.
Other possible methods include
SHA-256-ness
,SHA-512-256
andSHA-512-256-sess
which hashlib doesn't currently appear to support out of the box.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: