OpenSSL 与 Phpseclib
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己会选择 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.