https://github.com/ericchiang/bcrypt-cli
https://github.com/ericchiang/bcrypt-cli
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericchiang/bcrypt-cli
- Owner: ericchiang
- Created: 2016-10-20T23:11:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T00:38:38.000Z (over 9 years ago)
- Last Synced: 2025-01-25T07:24:04.503Z (over 1 year ago)
- Language: Go
- Size: 1.86 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple command line tool for generating bcrypted passwords.
Download the precompiled tool for your operating system from the [releases page](https://github.com/ericchiang/bcrypt-cli/releases).
```
$ wget https://github.com/ericchiang/bcrypt-cli/releases/download/v1.0.0/bcrypt-cli-v1.0.0-linux-amd64.tar.gz
$ sha512sum bcrypt-cli-v1.0.0-linux-amd64.tar.gz
# verify results
$ tar -zxvf bcrypt-cli-v1.0.0-linux-amd64.tar.gz
./
./bcrypt-cli/
./bcrypt-cli/bcrypt-cli
```
Use the tool to create a bcrypted password.
```
$ ./bcrypt-cli/bcrypt-cli
Enter password:
Re-enter password:
$2a$10$C9DliP580ooWFpr6XTQwOuFd3znBNDMVSytJmm9viL4XLZuy.PnMm
```
Increase the cost using the `-cost` flag (defaults to 10).
```
$ ./bcrypt-cli/bcrypt-cli -cost=14
Enter password:
Re-enter password:
$2a$14$830vR/vhwIFKXaLtHaP41OInok.XsUBAgrG.EC3JqyQUMrbj091qG
```