mehedimi / bcrypt-cli
A bcrypt command line tool
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/mehedimi/bcrypt-cli
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: 2025-09-22 08:23:54 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