具有服务器端脚本语言(php、perl、python、shell...)的 RSA-PSSR
我正在开发一个基于具有消息恢复功能的数字签名(RSA-PSSR)的加密软件许可系统。 这意味着签名的消息(在本例中为许可证块)直接编码在签名中(我们通常仅对要签名的消息的哈希值进行编码)。
许可证密钥将使用 RSA 私钥在服务器上生成,并将使用公钥在客户端代码中进行验证。
目前,我已经使用 C++ 和 Crypto++ 库开发了服务器和客户端代码,一切运行良好。 现在,我想用 PHP、Perl 或 Python 等脚本语言重写服务器代码,因为我的网络托管服务不接受本机代码。
什么脚本语言支持 RSA-PSSR 方案? 我用谷歌进行了快速搜索,但没有找到任何有关此的信息。
I'm developing a cryptographic software license system based on digital signature with message recovery (RSA-PSSR).
It means that the signed message (in this case, the license block) is encoded directly in the signature (where we usually encode only the hash of the message that we want to sign).
The license keys will be generated on a server, with a private RSA key, and will be verified in the client code, with the public key.
For now, I have developped the server and client code in C++, with the library Crypto++, and everything is working well.
Now, I want to rewrite the server code in a scripting language like PHP, Perl or Python, because my web hosting service don't accept native code.
What scripting language supports the RSA-PSSR scheme ?
I have done a quick search with Google but I haven't found any information about this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
phpseclib,一个纯 PHP RSA 实现,支持 PSS。只需执行 $rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PSS) 即可。但不做 PSS-R...
phpseclib, a pure PHP RSA implementation, supports PSS. Just do $rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PSS). Doesn't do PSS-R though...
我不知道有任何脚本语言支持概率签名方案。
但是,Perl 确实支持 PSS:
地穴::RSA::SS::PSS。使用“On Perl”第 11.5 章
Chilkat RSA Perl 库。据我所知,Chilkat 也有许多其他语言的库。
我不确定其中任何一个是否支持 PSS-R(带有消息恢复)。
I don't know of any scripting languages supporting Probabilistic Signature Scheme.
However, Perl does have PSS support:
Crypt::RSA::SS::PSS. Use sample in "On Perl" chapter 11.5
Chilkat RSA Perl Library. Chilkat, as far as I know, has libraries for many other languages as well.
I am not sure if either of those support PSS-R (with message recovery).