mehedimi/bcrypt-cli

A bcrypt command line tool

0.1.0 2023-01-07 06:06 UTC

This package is auto-updated.

Last update: 2024-04-22 05:17:08 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