CLI to generate the bcrypt hash of a plaintext password.
npx @wzlin/bcrypt-cli -p PLAINTEXT_PASSWORD
To enter the password in a prompt instead of passing it as part of the command:
npx @wzlin/bcrypt-cli
Password to hash. If omitted, password will be requested via a private prompt.
Amount of key expansion rounds to do. If omitted, defaults to 15.
To install it as a command:
npm i -g bcrypt-cli
After installation, it can be used directly:
bcrypt-cli [...options]