Re: How to encrypt a large file by a public key?

2005-12-20 Thread joez
Just curious: Putting speed aside, what is the security risk by encrypting a large file chunk by chunk using RSA public key? (e.g. using chain mode like what is done in symmetric block cipher) On 12/14/05, Amir (sent by Nabble.com) [EMAIL PROTECTED] wrote: Thank you for your reply, I do

Re: How to encrypt a large file by a public key?

2005-12-20 Thread Victor Duchovni
On Tue, Dec 20, 2005 at 10:48:57AM -0500, [EMAIL PROTECTED] wrote: Just curious: Putting speed aside, what is the security risk by encrypting a large file chunk by chunk using RSA public key? (e.g. using chain mode like what is done in symmetric block cipher) RSA is not intended for

Re: How to encrypt a large file by a public key?

2005-12-14 Thread Amir (sent by Nabble.com)
Thank you for your reply, I do not undrestand the last paragraph very well. I know how to encrypte a file using a symmetric algorithm. But i dont know what do you mean by then encrypting with the RSA key Encrypting by by a symmetric al will give me a file with the same size. I all want to do

Re: How to encrypt a large file by a public key?

2005-12-14 Thread Lloyd Brown
I could be wrong, but I believe what is being said is this: - It is difficult to encrypt a large file with an asymmetric algorithm like RSA - It is easy to encrypt a large file with a symmetric algorithm like AES, but both sides must have the same key, and that key exchange is difficult - The

Re: How to encrypt a large file by a public key?

2005-12-14 Thread JCA
On 12/14/05, Amir (sent by Nabble.com) [EMAIL PROTECTED] wrote: Thank you for your reply, I do not undrestand the last paragraph very well. I know how to encrypte a file using a symmetric algorithm. But i dont know what do you mean by then encrypting with the RSA key Encrypting by by a

Re: How to encrypt a large file by a public key?

2005-12-12 Thread JCA
With RSA, the data to be encrypted is first mapped on to an integer. For RSA to work, this integer must be smaller than the RSA modulus used. In order to get things to work the way you want, if you are using a (say) 1,024-bit RSA modulus, you must split your input data in chunks 1,024 bits long,

How to encrypt a large file by a public key?

2005-12-11 Thread Amir (sent by Nabble.com)
Hi all, How can I encrypt a large file (like 100mb) with a public key so that no one other than who has the private key be able to decrypt it? I can make RSA public and private keys but when it comes to encrypting a large file using this command: openssl rsautl -encrypt -pubin -inkey

Re: How to encrypt a large file by a public key?

2005-12-11 Thread Richard Salz
How can I encrypt a large file (like 100mb) with a public key so that no one other than who has the private key be able to decrypt it? Encrypt it using a strong symmetric key (such as AES) and use RSA to encrypt *that* key. This is the way everyone does it. /r$ -- SOA Appliance