Android Question Problem with decode RSA in PHP

Ilya G.

Active Member
Licensed User
Longtime User
Please help to solve problem with RSA. I'm always get response: Decryption failed

PHP:
<?php
    $Private = file_get_contents("PrivateKey.pem");
    $messENC = base64_decode($_GET["mess"], true);

    if (openssl_private_decrypt($messENC, $messDEC, $Private)) {
        var_dump($messDEC);
    } else {
        var_dump("Decryption failed");
    }
?>
 

Attachments

  • RSA.zip
    11.5 KB · Views: 207
  • PrivateKey.zip
    2.6 KB · Views: 196
Cookies are required to use this site. You must accept them to continue using the site. Learn more…