DigestAlgorithm
Represents a hash algorithm used by HTTP Digest Authentication (RFC 7616) and XML Signature.
HTTP Digest Authentication algorithms are available as companion constants and can be resolved by algorithm name via from. Session variants (those ending with -sess) modify the HA1 calculation to include the nonce and cnonce, providing additional security by binding the session to specific client entropy.
SHA_256, SHA_384, and SHA_512 also expose an XML Signature digest uri that can be resolved via fromUri.
Security Recommendation: Use SHA_512_256 or SHA_512_256_SESS for new HTTP Digest implementations. These provide the strongest security properties. MD5 variants are deprecated and should only be used for backward compatibility with legacy systems.
Functions
Creates a MessageDigest instance for this algorithm.