Jump to content

Calculation of DigestValue in sha256/base64


tufffta

Recommended Posts

Hello,

 

I am a bit confused by this statement that I found on a sha256 digestvalue calculation here: http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#sha256

A SHA-256 digest is a 256-bit string. The content of the DigestValue element shall be the base64 encoding of this bit string viewed as a 32-octet octet stream.

Does that mean that the sha256 hash value has to be converted to a 32-bit string before encoding it to base64? If yes, could someone please tell me how this can be done? I'm a kind of a n00b, but I haven't found info on how to do that on the internet.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...