encrypt.php 412 B

1234567891011
  1. <?php
  2. $password = !empty($argv[1]) ? trim($argv[1]) : '';
  3. if(empty($password) or $password == '-h' or $password == '--help') die("This script can encrypt password. Please input password. e.g. php encrypt.php 123456\n");
  4. chdir(dirname(dirname(dirname(__FILE__))));
  5. include './framework/helper.class.php';
  6. $config = new stdclass();
  7. include './config/config.php';
  8. die(helper::encryptPassword($password) . "\n");