openssl-seal is a best solution for your requirement.
在 2017年8月10日，05:41，Ricardo Ramos Massaro <firstname.lastname@example.org> 写道：On Wed, Aug 9, 2017 at 9:01 AM, Daniel Silverstone
<email@example.com> wrote:May help.
Note that this is just plain RSA, which is not very secure. To be
secure, RSA must be used with some padding scheme, which is more
complicated than it sounds (PKCS v1.5 was one such scheme that was
eventually found vulnerable, for example).
When in doubt, one really should prefer existing crypto libraries that
have been checked by people who understand crypto.