mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 21:49:50 +05:30
14 lines
372 B
PHP
Executable File
14 lines
372 B
PHP
Executable File
#!/bin/env php
|
|
<?php
|
|
|
|
require(__DIR__.'/../vendor/autoload.php');
|
|
|
|
try {
|
|
$key = Crypto::CreateNewRandomKey();
|
|
echo sprintf('Created a new crypto key: %s', bin2hex($key)), PHP_EOL;
|
|
exit(0);
|
|
} catch (CryptoTestFailedException $ex) {
|
|
exit('Cannot safely create a key');
|
|
} catch (CannotPerformOperationException $ex) {
|
|
exit('Cannot safely create a key');
|
|
} |