The Digest HTTP header is a response HTTP header that provides the requested resource with a small value generated by a hash function from a whole message. The Digest HTTP header is a response header that provides a digest of the requested resource. The entire representation is used to calculate the digest. Multiple digest values for a single resource is also possible as the representation depends on Content-Type and Content-Encoding.
Directives: This header accepts two directives as mentioned above and described below:
- <digest-algorithm>: It contains defined supported algorithms, example SHA-256 and SHA-512.
- <digest-value>: It holds the result of encoding and applying the digest algorithm to the resource representation.
- It provides the resource with the sha-256 algorithm and also provides the digest value.
- It provides the resource with the sha-512 algorithm and also provides the digest value. In addition to that, it provides UNIX sum algorithm which is subject to collisions.
Digest: sha-512=\vdtgeeksforgeeks8nOJRJN3OWDDBPE=, unixsum=69
Supported Browsers: The browsers are compatible with HTTP Digest header are listed below:
- Google Chrome
- Internet Explorer