Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rsa = new Crypt_RSA();
- $rsa->modulus = $modulus;
- $rsa->publicExponent = $exponent;
- $rsa->exponents = array(1=> $dp, $dq);
- $rsa->coefficients = array(2 => $inverseq);
- $rsa->primes = array(1 => $p, $q);
- $rsa->k = strlen($rsa->modulus->toBytes());
- echo $rsa;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement