Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 22nd January 2012, 01:04 PM
roelj Offline
Registered User
 
Join Date: Jun 2009
Location: Netherlands
Age: 21
Posts: 279
linuxopera
C++ pretty output of SHA 256

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?
Reply With Quote
 

Tags
256, cpp, modhex, output, pretty, sha, sha-256

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pretty trival: tee vs output redirection creeping death Programming & Packaging 4 22nd March 2009 01:21 PM
Sure have a pretty screen! curshe Using Fedora 8 21st January 2009 06:51 PM
Hacked pretty well... netmanwolf Security and Privacy 6 2nd May 2007 07:04 AM
output a file to ternimal but keep the output updated Saint Mike Using Fedora 2 30th December 2006 11:22 AM
Yum seems pretty slow tseliot Fedora Focus 19 24th July 2006 08:24 PM


Current GMT-time: 05:49 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat