Guest User

Untitled

a guest
Dec 13th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $rsa = new phpseclibCryptRSA();
  2. $public = [
  3. 'n' => new phpseclibMathBigInteger($modulus, 16),
  4. 'e' => new phpseclibMathBigInteger($exponent, 16),
  5. ];
  6. $rsa->loadKey($public);
  7. $text = 'RohanSakhale';
  8. $signature = $rsa->sign($text);
  9. var_dump($signature);
Add Comment
Please, Sign In to add comment