OpenSSL 与 Phpseclib

发布于 2024-10-08 21:40:46 字数 66 浏览 0 评论 0原文

OpenSSL 与 Phpseclib

你的意见是什么,我正在寻找 rsa 和散列。我希望它尽可能快。

OpenSSL vs. Phpseclib

What is your opinion, I'm looking to do rsa and hashing. I'd like it to be as fast as possible.

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

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

发布评论

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

评论(1

冷月断魂刀 2024-10-15 21:40:46

我自己会选择 phpseclib,因为它比 OpenSSL 更容易使用和部署。如果你能让 OpenSSL 工作的话,它会更快,但这是一个很大的假设。

OpenSSL 的一个问题是它只接受 X.509 证书形式的公钥。它也没有像人们希望的那样广泛部署在服务器上(这意味着使用它的代码的可移植性较差),甚至在部署它的服务器上,您也可能会遇到 openssl.cnf 文件配置错误的问题。

I'd go with phpseclib myself on the basis that it's a lot easier to use and deploy than OpenSSL is. OpenSSL's going to be faster, if you can get it working, but that's a big if.

One problem with OpenSSL is that it only accepts public keys if they're in the form of X.509 certificates. It's also not as widely deployed on servers as one might like (meaning that code that uses it is going to be less portable) and even on those servers that it is deployed on you're liable to have issues with misconfigured openssl.cnf files.

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