divineomega / php-password-cracker
PHP密码破解包
v1.1.0
2020-02-20 23:43 UTC
Requires
- php: >=7.1
- spatie/async: ^1.2
This package is auto-updated.
Last update: 2024-09-22 06:18:35 UTC
README
PHP密码破解包
安装
composer require divineomega/php-password-cracker
使用
use DivineOmega\PasswordCracker\Crackers\DictionaryCracker; $hash = password_hash('secret', PASSWORD_BCRYPT); $password = (new DictionaryCracker())->crack($hash); /* $password = (new DictionaryCracker())->crack($hash, function($passwordBeingChecked) { echo 'Checking password '.$passwordBeingChecked.'...'.PHP_EOL; }); */ echo 'Password found: '.$password.PHP_EOL;