Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 738 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 738 Bytes

passwordhash

CLI for creating salted password hashes with bcrypt, scrypt and argon2.

Usage

Print a base64 encoded bcrypt hash of a given binary file

go run main.go bcrypt -e < data.bin

Print a base64 encoded argon2 hash of a given password string

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)

go run main.go argon2 -e -s fa09cf432d5ae1 "myS3cr3tP4ssW0rd"

Write a binary argon2 hash of a given password string

go run main.go argon2 "myS3cr3tP4ssW0rd" > hash.bin

Write a binary argon2 hash of a given password string

go run main.go argon2 < data.bin > hash.bin