开发者

RSA-PSSR with a server-side scripting language (php, perl, python, shell, ...)

开发者 https://www.devze.com 2023-04-03 03:02 出处:网络
I\'m developing a cryptographic software license system based on digital signature with message recovery (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 do开发者_如何学JAVAne a quick search with Google but I haven't found any information about this.


phpseclib, a pure PHP RSA implementation, supports PSS. Just do $rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PSS). Doesn't do PSS-R though...


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消