LinuxCommandLibrary

xkcdpass

TLDR

Generate passphrase

$ xkcdpass
copy
Generate with specific word count
$ xkcdpass -n [6]
copy
Generate with delimiter
$ xkcdpass -d "-"
copy
Generate multiple passphrases
$ xkcdpass -c [5]
copy
Use custom wordlist
$ xkcdpass -w [/path/to/wordlist]
copy
Filter by word length
$ xkcdpass --min [4] --max [8]
copy
Generate with numbers
$ xkcdpass --valid-chars "[a-z0-9]"
copy

SYNOPSIS

xkcdpass [-n count] [-d delimiter] [-w wordlist] [options]

DESCRIPTION

xkcdpass generates memorable passphrases using random words. It's inspired by XKCD comic 936 about password strength.
Random words from a dictionary create passphrases. Four or more random words provide strong security while remaining memorable.
The default wordlist contains common English words. Custom wordlists can be used for different languages or specialized vocabularies.
Entropy information shows passphrase strength. Longer passphrases and larger wordlists increase entropy.
Acrostic mode generates passphrases where first letters spell a word. This aids memorization while maintaining randomness.
Word length filters exclude very short or long words. This can improve pronounceability and typing speed.

PARAMETERS

-n COUNT

Number of words.
-d DELIM
Delimiter between words.
-w FILE
Wordlist file.
-c N
Number of passphrases.
--min N
Minimum word length.
--max N
Maximum word length.
--valid-chars CHARS
Valid characters regex.
-v, --verbose
Show entropy info.
-a ACROSTIC
Acrostic pattern.
-i, --interactive
Interactive mode.
--help
Show help.

CAVEATS

Security depends on wordlist size. Short wordlists reduce entropy. Random selection must be truly random. Not for high-security needs without verification.

HISTORY

xkcdpass was created inspired by XKCD comic 936 by Randall Munroe. The comic demonstrated that random word passphrases are more secure and memorable than complex but short passwords.

SEE ALSO

pwgen(1), makepasswd(1), apg(1), openssl(1)

Copied to clipboard