PHP code example of sentinelo / agent-core
1. Go to this page and download the library: Download sentinelo/agent-core 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/ */
sentinelo / agent-core example snippets
bash
# La clé passe par l'environnement ou par un fichier, jamais par un argument
# (elle serait visible dans la liste des processus et dans l'historique).
SENTINELO_KEY_MATERIAL='…' php bin/sentinelo-decrypt sauvegarde.tar.enc sauvegarde.tar
php bin/sentinelo-decrypt --key-file=cle.txt sauvegarde.tar.enc sauvegarde.tar
tar -tf sauvegarde.tar