PHP code example of paper-scorer / decrypter-php
1. Go to this page and download the library: Download paper-scorer/decrypter-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
paper-scorer / decrypter-php example snippets
use PaperScorer\DecrypterPhp\Decrypter;
// Create a decrypter with the key provided by PaperScorer.
$decrypter = new Decrypter($decryptKey);
// Decrypt the encrypted callback payload (returns a JSON string).
$decryptedResponse = $decrypter
->setEncryptedContent($encryptedContent)
->decrypt();
// Produce a payload this library can read back.
$payload = $decrypter->encrypt($decryptedResponse);