https://github.com/divineomega/php-password-cracker
PHP package to crack passwords
https://github.com/divineomega/php-password-cracker
password password-cracker php security
Last synced: 11 months ago
JSON representation
PHP package to crack passwords
- Host: GitHub
- URL: https://github.com/divineomega/php-password-cracker
- Owner: DivineOmega
- License: lgpl-3.0
- Created: 2020-02-18T23:04:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T20:52:15.000Z (over 6 years ago)
- Last Synced: 2025-05-21T21:12:13.416Z (about 1 year ago)
- Topics: password, password-cracker, php, security
- Language: PHP
- Size: 43 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Password Cracker
PHP package to crack passwords
## Installation
```bash
composer require divineomega/php-password-cracker
```
## Usage
```php
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;
```