divineomega/php-password-cracker

PHP package to crack passwords

v1.1.0 2020-02-20 23:43 UTC

This package is auto-updated.

Last update: 2024-12-22 06:47:47 UTC


README

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;