> The general approach is to encrypt data using a symmetric cipher (e.g.,
> AES-256) with a randomly-generated key, and then encrypt that symmetric key
> with the RSA (public) key.
AES-256 requires a RSA modulus with an equivalent strength, which is a
15360 (IIRC). If you choose RSA-1024 or RSA-2048, you are off by
orders of magnitude.

On Thu, Jul 8, 2010 at 11:43 PM, Phillip Hellewell <[email protected]> wrote:
> The general approach is to encrypt data using a symmetric cipher (e.g.,
> AES-256) with a randomly-generated key, and then encrypt that symmetric key
> with the RSA (public) key.
>
> And for the symmetric encryption you'll also have to make a decision about
> what mode to use (ECB, CBC, CTR, etc).  Whatever you do, don't use ECB :)
>
> Phillip
>
> On Thu, Jul 8, 2010 at 7:40 PM, Chuck Pareto <[email protected]> wrote:
>>
>> Is there an algorithm that I can use, similar to RSA with public/private
>> key, that will allow me to encrypt really long strings (like an email/text
>> file)? Actually no limit on the size would be ideal.
>
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to