RSA
-
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 3Thanks,
Roshan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘RSA’ is closed to new replies.