I need to encrypt a 100KB file using a public key. I\'ve been reading some posts claiming that it is not practical to directly encrypt large files using a public key, and th
Asymmetric cryptography is too slow, the most used approach is to encrypt random symmetric key with asymmetric, and encrypt your data with that symmetric key.
And, as well, the best way is to use well-known protocol/standard for that purpose (OpenPGP for instance).