mehedimi / bcrypt-cli
A bcrypt command line tool
0.1.0
2023-01-07 06:06 UTC
Requires
- php: >=5.5
- symfony/console: ^6.2
Requires (Dev)
- phpunit/php-timer: ^5.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-22 06:33:10 UTC
README
A bcrypt command line tool
Installation
composer global require mehedimi/bcrypt-cli
Generate Hash
To make a hash of a string, you need to just run the make
command, Like bellow
bcrypt make YOUR_SECRET_TEXT
Output
Text: secret
Hash: $2y$10$jn/PQTiAiIOCs1u7CYOD5ePHQ6Qfe1smj7/eXPv.sAhPz3MnksJKm
Matching the Hash
You can check a hash token against a text by using verify
command. Like bellow
bcrypt verify secret
It will ask you to provide hash token
Please enter the hash: $2y$10$jn/PQTiAiIOCs1u7CYOD5ePHQ6Qfe1smj7/eXPv.sAhPz3MnksJKm
Output
Text: secret
Hash: $2y$10$jn/PQTiAiIOCs1u7CYOD5ePHQ6Qfe1smj7/eXPv.sAhPz3MnksJKm
Match: Yes