1. Go to this page and download the library: Download qopanza/sdk 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/ */
qopanza / sdk example snippets
use Qopanza\QopanzaClient;
$client = new QopanzaClient('http://localhost:8000', $apiKey);
// One-line encryption: no key management at all.
$sealed = $client->encrypt(null, 'customer sensitive information');
echo $client->decrypt($sealed);
// Full control.
$key = $client->createKey('kem', 'order-service');
$sealed = $client->encrypt($key['id'], 'hello quantum-safe world');
$sigKey = $client->createKey('signature');
$signed = $client->sign($sigKey['id'], 'order-42-confirmed');
$valid = $client->verify($sigKey['id'], 'order-42-confirmed', $signed['signature']);
// Discovery.
$run = $client->scanTls('api.example.com');
$posture = $client->securityPosture();