first commit
This commit is contained in:
14
libraries/vendor/defuse/php-encryption/bin/generate-defuse-key
vendored
Executable file
14
libraries/vendor/defuse/php-encryption/bin/generate-defuse-key
vendored
Executable file
@ -0,0 +1,14 @@
|
||||
#!/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";
|
||||
Reference in New Issue
Block a user