[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/defuse/php-encryption/bin/ -> generate-defuse-key (source)

   1  #!/usr/bin/env php
   2  <?php
   3  
   4  use Defuse\Crypto\Key;
   5  
   6  foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
   7      if (file_exists($file)) {
   8          require $file;
   9          break;
  10      }
  11  }
  12  
  13  $key = Key::createNewRandomKey();
  14  echo $key->saveToAsciiSafeString(), "\n";


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer