Soldato
I'm trying to understand something from W3C XML Signature page (https://www.w3.org/TR/xmldsig-core1/#sec-DigestValue), specifically about the DigestValue. It says.
I'm probably being thick but how does that translate into that Base64? If I'm literal and run the octet bit string through a Base64 encoder I get something like
QTk5OTNFMzYgNDcwNjgxNkEgQkEzRTI1NzEgNzg1MEMyNkMgOUNEMEQ4OUQ=
A SHA-1 digest is a 160-bit string. The content of the DigestValue element shall be the base64 encoding of this bit string viewed as a 20-octet octet stream. For example, the DigestValue element for the message digest:
A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D
from Appendix A of the SHA-1 standard would be:
<DigestValue>qZk+NkcGgWq6PiVxeFDCbJzQ2J0=</DigestValue>
I'm probably being thick but how does that translate into that Base64? If I'm literal and run the octet bit string through a Base64 encoder I get something like
QTk5OTNFMzYgNDcwNjgxNkEgQkEzRTI1NzEgNzg1MEMyNkMgOUNEMEQ4OUQ=