Files
liceo-ariosto/libraries/vendor/defuse/php-encryption/bin/generate-defuse-key
2025-06-17 11:53:18 +02:00

15 lines
298 B
PHP
Executable File

#!/usr/bin/env php
<?php
use Defuse\Crypto\Key;
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}
$key = Key::createNewRandomKey();
echo $key->saveToAsciiSafeString(), "\n";