https://github.com/niktheblak/passwordhash
CLI for various cryptographic hashes
https://github.com/niktheblak/passwordhash
bcrypt cli golang scrypt
Last synced: 10 months ago
JSON representation
CLI for various cryptographic hashes
- Host: GitHub
- URL: https://github.com/niktheblak/passwordhash
- Owner: niktheblak
- License: agpl-3.0
- Created: 2019-05-30T15:00:33.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-08-15T07:56:22.000Z (10 months ago)
- Last Synced: 2025-08-21T23:26:31.887Z (10 months ago)
- Topics: bcrypt, cli, golang, scrypt
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# passwordhash
CLI for creating salted password hashes with bcrypt, scrypt and argon2.
## Usage
Print a base64 encoded bcrypt hash of a given binary file
```shell
go run main.go bcrypt -e < data.bin
```
Print a base64 encoded argon2 hash of a given password string
```shell
go run main.go argon2 -e "myS3cr3tP4ssW0rd"
```
Print a base64 encoded argon2 hash of a given password string with a custom salt (in hexadecimal format)
```shell
go run main.go argon2 -e -s fa09cf432d5ae1 "myS3cr3tP4ssW0rd"
```
Write a binary argon2 hash of a given password string
```shell
go run main.go argon2 "myS3cr3tP4ssW0rd" > hash.bin
```
Write a binary argon2 hash of a given password string
```shell
go run main.go argon2 < data.bin > hash.bin
```