⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 01-text-password.phpt

📁 俄罗斯人开发的一套基于WEB的对PPP用户进行管理的管理系统,很不错,结合freenibs使用.
💻 PHPT
字号:
<?phperror_reporting(E_ALL);require_once '../Password.php';function timeToBruteForce ($password, $nbr = 0, $cmbPerSeconde = 4000) {  global $_Text_Password_NumberOfPossibleCharacters;  $nbr = ($nbr == 0) ? $_Text_Password_NumberOfPossibleCharacters : $nbr;  $cmb = pow($nbr, strlen($password));  $time_max = $cmb / $cmbPerSeconde;  $time_min = ($cmb / $cmbPerSeconde) / 2;  return array('combination' => $cmb,               'max'         => $time_max,               'min'         => $time_min);}echo "\nCreating pronounceable password of 10 chars....:\t";echo Text_Password::create() . "\n\n";echo "\nCreating 3 different pronounceable passwords...:\n";print_r(Text_Password::createMultiple(3));echo "\nCreating unpronounceable password of 8 chars with a,b,c as possible chars....:\t";echo Text_Password::create(8, 'unpronounceable', 'a,b,c') . "\n\n";echo "\nCreating 4 different unpronounceable passwords...:\n";print_r(Text_Password::createMultiple(4, 10, 'unpronounceable'));echo "\nEstimated time (in sec) to brute force an unpronounceable password of 5 chars with a 4000 combinations per second generator...:\n";$pass = Text_Password::create(5, 'unpronounceable');print_r(timeToBruteForce($pass));echo "\nCreating unpronounceable password of 8 chars with numeric chars:\t";echo Text_Password::create(8, 'unpronounceable', 'numeric') . "\n\n";echo "\nCreating unpronounceable password of 8 chars with alphanumeric chars:\t";echo Text_Password::create(8, 'unpronounceable', 'alphanumeric') . "\n\n";echo "\nCreating password from login 'olivier', type is 'reverse':\t";echo Text_Password::createFromLogin('olivier', 'reverse') . "\n\n";echo "\nCreating password from login 'olivier', type is 'rot13':\t";echo Text_Password::createFromLogin('olivier', 'rot13') . "\n\n";echo "\nCreating password from login 'olivier', type is 'rotx':\t";echo Text_Password::createFromLogin('olivier', 'rotx', 13) . "\n\n";echo "\nCreating password from login 'olivier', type is 'rotx++':\t";echo Text_Password::createFromLogin('olivier', 'rotx++', 13) . "\n\n";echo "\nCreating password from login 'olivier', type is 'rotx--':\t";echo Text_Password::createFromLogin('olivier', 'rotx--', 13) . "\n\n";echo "\nCreating password from login 'olivier', type is 'xor':\t";echo Text_Password::createFromLogin('olivier', 'xor', 5) . "\n\n";echo "\nCreating password from login 'olivier', type is 'ascii_rotx':\t";echo Text_Password::createFromLogin('olivier', 'ascii_rotx', 5) . "\n\n";echo "\nCreating password from login 'olivier', type is 'ascii_rotx++':\t";echo Text_Password::createFromLogin('olivier', 'ascii_rotx++', 5) . "\n\n";echo "\nCreating password from login 'olivier', type is 'ascii_rotx--':\t";echo Text_Password::createFromLogin('olivier', 'ascii_rotx--', 5) . "\n\n";echo "\nCreating password from login 'olivier', type is 'shuffle':\t";echo Text_Password::createFromLogin('olivier', 'shuffle', 1) . "\n\n";echo "\nCreating password from an array of login 'olivier', 'martin', 'vanhoucke', 'jansen', type is 'reverse':\n";$logins = array('olivier', 'martin', 'vanhoucke', 'jansen');print_r(Text_Password::createMultipleFromLogin($logins, 'reverse'));?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -