Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AES vs. RSA to encrypt large size of data

Can any one tell me why AES encryption Algorithm is more efficient to use than RSA Algorithm in case of encryption large block size of data ? thanks in advance ..

like image 485
sana Avatar asked Dec 16 '22 17:12

sana


1 Answers

RSA is very computationally expensive by comparison with AES. It involves mathematics with very large numbers, whilst AES can be implemented with relatively simple bit operations. The larger the data, the more you feel the pain.

A good compromise is to use RSA to encrypt the symmetric key that is then used in AES encryption of the larger data.

like image 121
David M Avatar answered Dec 31 '22 13:12

David M