Windows 上有 CryptoAPI 的替代品吗?

发布于 2024-08-30 14:02:38 字数 188 浏览 8 评论 0原文

我在使用 cryptoAPI 时遇到了重大问题,想知道你们是否有任何适用于 Windows 的第 3 方/更好的解决方案?

我对 CryptoAPI 的主要问题是它不够独立于操作系统。我无法在我的代码中找到适当的平衡,以使其能够在 Windows 2003 和 Windows 2008+ 上运行。

我本质上想要实现的目标可以阅读

I am having major problems with cryptoAPI, and was wondering do you get any 3rd party / better solutions for windows?

Main problem I have with CryptoAPI is that its not OS independent enough. I can't find the right balance in my code to get stuff to work on Windows 2003 and Windows 2008+.

What I essentially want to achieve can be read about here. This is my only use for Cryptography at this stage.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

老旧海报 2024-09-06 14:02:38

尝试一下 Bouncy Castle,它可以用 C# 和 C# 语言编写。爪哇:
http://www.bouncycastle.org/

我们领域的不少供应商在生产中使用它。

Try Bouncy Castle, it's available in C# & Java:
http://www.bouncycastle.org/

Quite a few vendors in our space use it in production.

一杆小烟枪 2024-09-06 14:02:38

我可以推荐 OpenSSL http://www.openssl.org/。它不仅适用于 SSL 领域,而且适用于整个密码学。它是开源代码。这一事实在某些情况下非常有用。它在 Windows 中也能很好地工作。您可以在此处找到推荐的 Windows 编译二进制文件和库 http://www.slproweb.com/products /Win32OpenSSL.html

I could recommend OpenSSL http://www.openssl.org/. It is not only for SSL the area, but for cryptography as a whole. It is open source code. This fact can be very useful in some situations. It also works very will in Windows. Recommended compiled binaries and libraries for Windows you can find here http://www.slproweb.com/products/Win32OpenSSL.html

罪歌 2024-09-06 14:02:38

CryptoAPI 很难正确使用,如果您遇到问题,我可以建议 Crypto++ 吗?该文档不是最好的,但我发现它非常强大。

如果不了解您想要实现的目标,恐怕我无法提供更多帮助。

CryptoAPI is a pain to use properly, if you are having problems, can I suggest Crypto++ ? The documentation isn't the best, but I've found it to be very powerful.

Without knowing more about what you are trying to achieve I can't be more help I'm afraid.

太阳哥哥 2024-09-06 14:02:38
  • Botan 库 - 非常好的库
  • gnu-tls/libgcrypt
  • Botan library - very nice library
  • gnu-tls/libgcrypt

Crypto++ 的功能非常强大,但也受到其复杂性和缺乏自动化/文档的困扰。我认为它还缺乏调试,当检查不起作用时,它就不起作用,但你几乎没有得到什么可能导致失败的提示......

无论如何,既然你使用的是 C++,可能我建议 Google Keyczar

  • 它易于使用,具有安全的默认设置,但允许自定义。
  • 它提供了一个完整的密钥管理系统,这是Crypto++所没有的,而且它足够复杂,需要自己编码。
  • 它也是开源的,因此可以审核代码。
  • 即使在 Windows 环境之外它也是可移植的。

不幸的是,我自己没有使用过它。我目前被 Crypto++ 困住了。但如果我现在有机会选择,我想我会花时间尝试 Keyczar。

Crypto++ is amazing in power, but suffers from its complexity and a lack of automation/documentation. It also suffers from a lack of debugging I think, when the check does not work, it just does not work, but you're given little hints as to what could cause the failure...

Anyway, since you are using C++, may I suggest Google Keyczar ?

  • It's meant to be easy to use, with safe defaults, yet allows customization.
  • It comes up with a complete Key Management system, which Crypto++ does not feature and which is complicated enough to code by oneself.
  • It's open source too, so the code can be audited.
  • It's portable even outside of the Windows environment.

I haven't, unfortunately, used it myself. I am currently stuck with Crypto++. But if I had the opportunity to choose right now, I think I'd invest time to experiment with Keyczar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文