xkcd-pass is a password generator to be able to generate XKCD style passwords in any language using the words from Letterpress.
go install github.com/dmartzol/xkcd-pass/cmd/xkcd-pass@latest
Usage: xkcd-pass [OPTIONS]
-M int
max word length (default 5)
-c int
number of words to use (default 4)
-d string
path to file with dictionary of words
-m int
min word length (default 2)
-s string
separator (default "-")
-v logs password strength information on screen
By default uses 4 words between 2 and 5 characters.
xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt
casta-giben-crino-ver
If you use the option -v
you can see the password entropy:
xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt -v
paxte-apuno-canse-dure
all words 636599
sample space 13898
entropy 55
You can use longer words:
xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt -m 4 -M 10 -v
conciliare-agrupable-atusadora-tañere
all words 636599
sample space 362935
entropy 74
It prints to stdout so you can conveniently copy to clipboard with:
xkcd-pass -d ~/code/xkcd-pass/wordlists/es.txt | pbcopy