Encrypting large files using a public key

前端 未结 5 2087
遥遥无期
遥遥无期 2020-12-17 19:42

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

5条回答
  •  醉话见心
    2020-12-17 20:24

    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).

提交回复
热议问题