PHP package to crack passwords
LGPL-3.0 License
PHP package to crack passwords
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;