C++ RSA 加密库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/108518/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 12:54:19  来源:igfitidea点击:

RSA encryption library for C++

c++winapiencryptionrsa

提问by Zombies

I am developing a Win32 application and I would like to use an RSA encryption library. Which library would you recommend?

我正在开发一个 Win32 应用程序,我想使用一个 RSA 加密库。你会推荐哪个图书馆?

采纳答案by Andrei Belogortseff

I use the following library:

我使用以下库:

http://www.efgh.com/software/rsa.htm

http://www.efgh.com/software/rsa.htm

It's public domain, compact, self contained, and does the work well.

它是公共领域的,紧凑的,自包含的,并且可以很好地工作。

回答by Nils Pipenbrinck

If you're using Win32, why don't you simply use the built-in win32 crypto-API?

如果您使用的是 Win32,为什么不简单地使用内置的 win32 加密 API?

Here's a little example how it works in practice:

这是一个小例子,它在实践中是如何工作的:

http://www.codeproject.com/KB/security/EncryptionCryptoAPI.aspx

http://www.codeproject.com/KB/security/EncryptionCryptoAPI.aspx

回答by KTC

Crypto++- They have NIST FIPS validated dll's for MSVC 6, 7.1, and 8 on top of the normal source code self built packages.

Crypto++- 在正常的源代码自建包之上,他们有针对 MSVC 6、7.1 和 8 的 NIST FIPS 验证的 dll。

回答by Mike G.

I think OpenSSL is a good choice. It's well-maintained, and the price is right :)

我认为 OpenSSL 是一个不错的选择。它维护得很好,价格也合适:)

http://www.openssl.org

http://www.openssl.org

回答by Eli Bendersky

As an alternative, consider LibTomCrypt (http://libtomcrypt.com/download.html)

作为替代方案,请考虑 LibTomCrypt ( http://libtomcrypt.com/download.html)

回答by FeatureCreep

Maybe Botanis an alternative? It is a C++ library with a BSD license that supports RSA algorithms.

也许Botan是另一种选择?它是一个带有 BSD 许可证的 C++ 库,支持 RSA 算法。

回答by paxos1977

Another alternative is libbeecrypt. A very mature product with assembler implementations on many platforms.

另一种选择是libbeecrypt。一个非常成熟的产品,在许多平台上都有汇编器实现。

回答by paxos1977

I have used OpenSSL in past and found it a great library for crypto APIs including AES, RSA, 3DES.

我过去使用过 OpenSSL,发现它是一个很好的加密 API 库,包括 AES、RSA、3DES。

回答by Bartosz Wójcik

I would recommend Miracl library https://certivox.com/solutions/miracl-crypto-sdk/but the price is high.

我会推荐 Miracl 库https://certivox.com/solutions/miracl-crypto-sdk/但价格很高。