Hi,
I just begin to interessing me about the cryptopp libs, and I have
some problem for using base64 strings.

So, in fact, I have to decode  a text... all is already gived to me in
base64 string : the IV, the Key and the string to decode.

I have made some try with "normal"   std:string, all works fine,   but
I don't find how to convert properly base64 to standard string.


here is my decrypting part
-------
        // Decryptor
                CryptoPP::CFB_Mode< CryptoPP::AES >::Decryption
                  Decryptor( key2, sizeof(key2) ,iv2);

                // Decryption
                CryptoPP::StringSource( cipher64, true,
                  new CryptoPP::StreamTransformationFilter( Decryptor,
                        new CryptoPP::StringSink( RecoveredText )
                  ) // StreamTransformationFilter
                ); // StringSource

-------
and the key, IV, and cypher that  I must use are in this format (for
exemple) "QlYQo7x2MyROePWz8hchuQ==". So I must translate them before
using it in my decrypting part and I don't realy know how to do.

I don't know how to declare a base64 string...

if I create it as an  std::string   ... it will not be an base64 but
with the same characters...

yes ... I'm a bit lost with this base64 thing. The last time I have to
use it, I could use the system::convert  in .NET.... but now I'm in
pure c++ and I can't use it.

I saw there was an " CryptoPP::Base64Decoder "  but I don't know how
to use it in the correct way.

Does have someone some exemple or purpose about how to do it
correctly ?

thx for your attention

Christophe A.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to