PHP code example of igirid / parrallex

1. Go to this page and download the library: Download igirid/parrallex 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/ */

    

igirid / parrallex example snippets



use Igirid\Parrallex;


$cipher = new Parrallex($iv, $key);
// Encrypt Payload
$data = [
    "username" => 'your username',
    "password" => "your password",
];
$payload = json_encode($cipher->encryptPayload($data));

// Decrypt Response
$decryptedResponse = $cipher->decryptPayload($encryptedHexResponseFromParrallexServer);



Igirid\Parrallex;

$cipher = new Parrallex($iv, $key);

// Decrypt Response
$decryptedResponse = $cipher->decryptPayload($encryptedHexResponseFromParrallexServer);