开发者

I'm using Crypto++ for RSA encryption. My plain text exceeds FixedMaxPlaintextLength. What should I do?

开发者 https://www.devze.com 2022-12-15 18:31 出处:网络
Should I b开发者_JS百科reak the text into chunks? Is RSA the wrong encryption scheme?Wrong scheme. The standard technique for message encryption (for example, PGP and CMS) is to generate a random sym

Should I b开发者_JS百科reak the text into chunks?

Is RSA the wrong encryption scheme?


Wrong scheme. The standard technique for message encryption (for example, PGP and CMS) is to generate a random symmetric session key K for something like AES and encrypted the message with AES using key K. Then encrypt K with the public key of each recipient of the message.


Typically, the asymmetric RSA algorithm is used for key exchanges. If you are encrypting larger chunks of data, it might be better to use something like AES.

0

精彩评论

暂无评论...
验证码 换一张
取 消