• Hello Team,

    kindly advise what the path of RSA should be?

    <?php
    $payload=json_encode($payload);
    			$rsa= new C:\wamp642\www\transportation\wordpress\wp-content\phpseclib\phpseclib\Crypt\RSA();
    			$rsa->setHash('sha1');
    			$rsa->setMGFHash('sha1');
    			$rsa->setEncryptionMode(RSA::ENCRYPTION_OAEP);
    			$rsa->setPublicKeyFormat(RSA::PUBLIC_FORMAT_PKCS1);
    			$rsa->loadKey($publickey);
    			$encryptedPayload=base64_encode($rsa->encrypt($payload));
    			$signaturedata="appID&merTradeNo=$merTradeNo$merTradeNo&payload=$encryptedPayload&paymentType=$paymentType";
    			$sign=base64_encode(hash_hmac('sha512',$signaturedata,$apiKey,true));
    ?>

    Fatal error: Uncaught Error: Class ‘wamp642\www\transportation\wordpress\wp’ not found in C:\wamp642\www\test.php on line 3
    ( ! ) Error: Class ‘wamp642\www\transportation\wordpress\wp’ not found in C:\wamp642\www\test.php on line 3

    Thanks,

    Roshan

    • This topic was modified 2 years, 4 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Is this really the code to which the error message refers? If so, which of these is line 3? If it is the third line you see there, I don’t see any reason for the error.

    What do you actually want to achieve with this?

Viewing 1 replies (of 1 total)
  • The topic ‘RSA’ is closed to new replies.