fork download
  1. <?php function rsa_decrypt($value, $private_key_e, $public_key_n)
  2. {
  3. $resp = gmp_powm($value, $private_key_e, $public_key_n);
  4. return $resp;
  5. }
  6. $txt = "O6d9IbAVAAADGfCRXooAACNG006bSQEAL/q3GkE7AAA=";
  7. $e = "Rivest_Shamir_Adleman";
  8. $n = "MTE6Mzc5MzgxMDk4NDM2MzQ5";
  9. echo rsa_decrypt($txt, $e, $n);
  10. ?>
Success #stdin #stdout #stderr 0.03s 25956KB
stdin
<?php function rsa_decrypt($value, $private_key_e, $public_key_n)
{
    $resp = gmp_powm($value, $private_key_e, $public_key_n);
    return $resp;
}
$txt = "O6d9IbAVAAADGfCRXooAACNG006bSQEAL/q3GkE7AAA=";
$e = "Rivest_Shamir_Adleman";
$n = "MTE6Mzc5MzgxMDk4NDM2MzQ5";
echo rsa_decrypt($txt, $e, $n);
?>
stdout
Standard output is empty
stderr
PHP Warning:  gmp_powm(): Unable to convert variable to GMP - string is not an integer in /home/II5nhQ/prog.php on line 3