php sec lib: RSA Examples and Notes
phpseclib's PKCS#1 v2.1 compliant RSA implementation is feature rich and has pretty much zero server requirements above and beyond PHP ... Options $rsa->setHash() tells Crypt_RSA which hash algorithm to use. The default hash algorithm is sha1. $rsa ......