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:
Code:
L�y�����B��Fs!�)�v&�VG
The output should be something like:
Code:
b8ed91da716fc576e3d005d91a9bdab842288439
I tried using:
Code:
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:
Code:
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?