dev-master
9999999-dev https://github.com/robertboloc/https://github.com/robertboloc/bcrypt-generatorGenerate bcrypt hashes from the command line
MIT
The Requires
by Robert Boloc
zf2 generator bcrypt
Wallogit.com
2017 © Pedro Peláez
Generate bcrypt hashes from the command line
Command line bcrypt hash generator. Useful for computing bcrypt hashes while developing., (*1)
composer.json file, in the require-dev section {
"require-dev": {
"robertmarsal/bcrypt-generator": "dev-master"
}
}
composer update
This will install the script into vendor/bin/bcrypt_generator.php, (*2)
Execute the CLI script providing some/all of the following options :, (*3)
--help | -h Get usage information.
--text | -t Text to get hashed., (*4)
For example calling the script using the -t option:, (*5)
php vendor/bin/bcrypt_generator.php -t admin
Will output something like:, (*6)
$2y$14$foQAf3JxtdeRCwYVXiH6DOJqPb1fnqD79NZOsj.2q3lIxMNYCVgXK
If you use this with a real password add a space before the php call to avoid
the command showing in your shell's history., (*7)
Generate bcrypt hashes from the command line
MIT
zf2 generator bcrypt