Hello,
I am new to Crypto++ and need it for a project where I use RSA encryption, then I need to do base64 encoding. Unfortunately I am doing it in the wrong order currently, and don't know how to do this correctly.


Here is my code:
StringSource(password, true, new PK_EncryptorFilter(randPool, pub, new Base64Encoder(new StringSink(result))));


password is the message, btw.

I tried:
StringSource(password, true, new PK_EncryptorFilter(randPool, pub, new StringSink(result)));
Base64Encoder b(result, false, new StringSink(result));


This did not appear to work correctly.

Any help would be appreciated.

--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black    [EMAIL PROTECTED]



Reply via email to