We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
OpenSSL 库是显而易见的选择。 CryptLib 是另一种选择,但您需要检查许可证(这相当具体的)。
关于编写自己的代码:
如果您只需要RSA,它并不大,您可以自己编写。然而,RSA 几乎从未被自己使用过。通常使用随机密钥和对称算法进行加密,然后使用RSA对随机密钥进行加密。因此,如果您想要数据加密并决定编写自己的东西,那么您将重新发明轮子。
OpenSSL library is the obvious choice. CryptLib is another option, yet you need to check the license (it's quite specific).
Regarding writing your own code:
if you need only RSA, it's not large and you can write it yourself. However, RSA is almost never used by its own. Usually encryption is performed using random key and symmetric algorithm, and then the random key is encrypted with RSA. So if you want data encryption and decide to write your own stuff, you will be reinventing the wheel.
Crypto++ Library 是一个免费的加密方案 C++ 类库。 在它提供的许多不同的加密系统中,它还提供 RSA 。
一般来说,推出自己的加密/安全代码从来都不是一个好主意,除非这是您所擅长的。安全代码很困难,即使在已建立的库中,漏洞、错误和故障也会偶尔出现。
Crypto++ Library is a free C++ class library of cryptographic schemes. Amongst the many different encryption systems it supplies it also provides RSA.
In general, it is never a good idea to roll your own encryption/security code, unless this is what you are good at. Secure code is HARD, and even in established libraries loopholes, bugs and faults pop up every once in a while.
OpenSSL 将是标准选择。 http://www.openssl.org/
http://www.openssl.org/docs/crypto/rsa.html 描述了它的 API。
OpenSSL would be the standard choice. http://www.openssl.org/
http://www.openssl.org/docs/crypto/rsa.html describes its API.
另请查看 cryptopp。我用过它,非常方便(虽然没有使用过RSA)。
请参阅我的其他答案此处和此处。
have a look also at cryptopp. I use it and it is very convenient (haven't use the RSA though).
see my other answers here and here.