passwordhash

command module
v0.0.0-...-555b434 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL