php-password-cracker

PHP package to crack passwords

LGPL-3.0 License

Downloads
37
Stars
6
Committers
2

PHP Password Cracker

PHP package to crack passwords

Installation

composer require divineomega/php-password-cracker

Usage

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;