Re: RSA Encryption
- From: "no game" <xiangliang@xxxxxxxxxxx>
- Date: 1 Jul 2005 09:19:22 -0700
Just to confirm, this 128 byte limit is not the limit of C# or .net,
this is a limit set by the RSA 1024 bit algorithm. Am I making the
right statement here?
Thanks
William Stacey [MVP] wrote:
> That is what I was saying. You can't actually encrypt 128 because of the
> padding. Maybe you can if no padding is used, but not sure. It is key size
> related, so a larger key can encrypt more bytes. But normally you will want
> a symmetric encryption for large amounts of data.
>
> --
> William Stacey [MVP]
>
> "no game" <xiangliang@xxxxxxxxxxx> wrote in message
> news:1120158831.054683.76500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > For RSA 1024 bit encryption,
> >
> > Is it mean the output number of byte is always 128 bytes, and you can
> > not encrypt more than 128 bytes of data.
> >
> > Thanks
> >
> > William Stacey [MVP] wrote:
> >> The 117 byte limit is related to the size of the Asymetric key size. You
> >> can only encrypt in block of something < key size depending on what
> >> padding
> >> is being used. However, most use a faster symmetric algo like AES
> >> (Rijindael) then encrypt the key and IV with an RSA symmetric key.
> >> --
> >> William Stacey [MVP]
> >>
> >> "no game" <xiangliang@xxxxxxxxxxx> wrote in message
> >> news:1119990515.967299.264100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >> > Can I encrypt data more than 117 bytes in C# (can use CAPICOM and
> >> > Crypto API libraries) using RSA 1024 bit.
> >> >
> >> > Any sample code would be appreciated.
> >> >
> >> > Thanks
> >> >
> >
.
- Follow-Ups:
- Re: RSA Encryption
- From: no game
- Re: RSA Encryption
- References:
- Re: RSA Encryption
- From: William Stacey [MVP]
- Re: RSA Encryption
- Prev by Date: Best practices for team development...
- Next by Date: Re: A problem to get your teeth stuck into..
- Previous by thread: Re: RSA Encryption
- Next by thread: Re: RSA Encryption
- Index(es):
Relevant Pages
|