# README
passgen
passgen
is a helper CLI tool for generating passwords.
Build the passgen
go build -o passgen cmd/passgen/main.go
Usage
Run passgen:
$ passgen
{
"salt": "vo4zUAvV7kcPzttGkzHSL79hvWFJt6AJXT1tEu35ja8=",
"password": "ch91ipt19fhv0p5d3n20",
"hash": "d94e77c02f69966cd1a5111a79c572b19208db7e0ffdb6816f8b4ed189f562be"
}
Since the passgen
outputs data in the JSON format you can pipe the output to jq:
$ passgen | jq .password
"ch91jul19fhv18u7m1i0"
# Packages
No description provided by the author
# Functions
GeneratePassword generates random password.
GenerateSalt generates a random salt with 32 bytes of crypto/rand data.
HashPassword takes passwd string and salt and returns a string representing hashed password.
Main is the entry point to the program.
RunCLI takes output and error writers and runs the program.