When signing some XML, the signer generates the DigestValue tag containing a hash. I can generate the digest value with a digital certificate, but I would like to generate this hash without having to have a certificate ...
I have seen in some documentation that it is necessary to use SHA1 and Base64, but whenever I use these two algorithms, the hash that returns me is not the one I'm expecting.
Does anyone know the complete algorithm to generate this value?
Scenario:
- Input is any XML
- I use the SHA1 encryption algorithm, then
- I transform the return of the encryption in Base64
- The base64 return should be the correct hash, but a different hash comes in.