The content digest should only be computed for requests where message body is
present
Generate Content Digest
Althoughsha-256 generated digests are considered secure, we recommend using sha-512.

1
Compute Content Digest
- Javascript
- Python
2
Make Signed Request
In the below example request:
sha-512: The algorithm used to hash the content messageRK/0...abDg=: Base64 representation resulting from the hashed content message
Verify Content Digest

1
Re-compute Content Digest
See
Step 1 in Generate Content DigestWe will call this
computed-content-digest.2
Compare Digests
Compare
computed-content-digest to the one that was passed along in the original http header (i.e. - header-content-digest).3
Verify or Reject
Reject the message, if
computed-content-digest does not equal header-content-digest.
