I'm facing a problem and I don't know how I can solve it / I don't know where to search.
I'm using botan to generate a SHA-256 check sum and I want it to output it as (I think) modhex.
Though, the output is like:
The output should be something like:
I tried using:
cout << setbase(16) << sha256str << endl;
But it doesn't make a difference at all.
What can I do or what should I know?
---------- Post added at 02:04 PM ---------- Previous post was at 02:56 AM ----------
I should've read more of the Botan documentation. Something like:
Botan::Pipe pipe(new Botan::Hex_Encoder);
Can convert the output to hexadecimal output.
Now, I wonder, what's the output format of the sha1sum application?