Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rsa = new phpseclibCryptRSA();
- $public = [
- 'n' => new phpseclibMathBigInteger($modulus, 16),
- 'e' => new phpseclibMathBigInteger($exponent, 16),
- ];
- $rsa->loadKey($public);
- $text = 'RohanSakhale';
- $signature = $rsa->sign($text);
- var_dump($signature);
Add Comment
Please, Sign In to add comment