> I've seen many examples, but all with files, none with strings.
Convert them to Integers, then use the InvertibleRSAFunction class:
http://cryptopp.com/docs/ref/class_invertible_r_s_a_function.html
On 12/16/07, Ernesto Olmos <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm having problems with RSA Encryption. I have the keys in variables.
>
> I've seen many examples, but all with files, none with strings.
>
> I get the error "BERDecodeErr"
>
>
>
> ----------------------------------------------------------
>
> string pb("93880B9999427FFFBD189F66CD1D0E165B75…");
>
> string pv1("F58DD26DD8E8E1…");
>
> string pv2("99CEB83B184A0C…");
>
>
>
> StringSource key1(pb.c_str(),true,new HexEncoder());
>
> RSAES_OAEP_SHA_Encryptor Enc(pb);
>
> ----------------------------------------------------------
>
>
>
> Thanks
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---