A CLI tool to generate secure passwords that exclude ambiguous characters.
- Generate multiple passwords at once.
- Customizable password length (minimum 8 characters).
- Excludes ambiguous characters (e.g.,
0,1,O,I,l,5,S,q,g).
password-gen [flags]-n,--num-passwords(default: 1): Number of passwords to generate.-l,--length(default: 16): Length of each password.
password-gen -n 3 -l 20- Uses
crypto/randfor cryptographically secure random number generation. - Uses
github.com/spf13/cobralibrary to simplify development and make the code more readable - Character set excludes potentially confusing characters to improve readability.
the executable can be built using go, or for convenience use the makefile and run make
# get the dependencies
go mod tidy
# then
go build -o password-gen
# or
maketime ./password-gen -n 1000000
...
________________________________________________________
Executed in 3.55 secs fish external
usr time 2.56 secs 0.00 millis 2.56 secs
sys time 1.32 secs 1.53 millis 1.32 secs