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 solution is to use AES to encrypt the file, and use RSA to encrypt the AES key.
Essentially, use the asymmetric RSA encryption to protect and exchange the AES key, and use AES to do the actual file encryption. You could even generate a new AES key each time you do this. Now, that being said, I don't really know how to do that easily using OpenSSL. Someone else will have to speak to that. Lloyd Brown Amir (sent by Nabble.com) said: > > 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 is to give a public key to someone to encrypt large files > and send it to me. > > Amir > -- > Sent from the OpenSSL - User forum at Nabble.com: > http://www.nabble.com/How-to-encrypt-a-large-file-by-a-public-key--t724858.html#a1951256 > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]