tao-test/app/vendor/defuse/php-encryption/bin/generate-defuse-key

15 lines
298 B
Plaintext
Raw Normal View History

2022-08-29 20:14:13 +02:00
#!/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";