Wraps golang.org/x/crypto/bcrypt in a cli
- Download an archive that matches your platform from the releases page.
- Extract the archive.
- On Mac OS, remove the quarantine attribute to avoid Gatekeeper preventing the application from running.
xattr -dr com.apple.quarantine bcrypt-cli
- Move the
bcrypt-cli
file to a directory on your$PATH
.
- Make sure you have Go installed.
go install github.com/adamvduke/[email protected]
$ bcrypt-cli --help
usage: bcrypt-cli [<flags>] <command> [<args> ...]
Wraps golang.org/x/crypto/bcrypt in a cli
Flags:
-h, --[no-]help Show context-sensitive help (also try --help-long and --help-man).
-v, --[no-]version Show application version.
Commands:
help [<command>...]
Show help.
compare
Compare a previously hashed password to a plain text password
cost
Print the hashing cost used to create the given hash
hash [<flags>]
Use bcrypt to hash a password
generate [<flags>]
Output a random password and it's bcrypt hash