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 <chuckda...@gmail.com> 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.
>

Reply via email to