← 返回命令列表

Linux command

xkcdpass 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate passphrase

xkcdpass

Generate with specific word count

xkcdpass -n [6]

Generate with delimiter

xkcdpass -d "-"

Generate multiple passphrases

xkcdpass -c [5]

Use custom wordlist

xkcdpass -w [/path/to/wordlist]

Filter by word length

xkcdpass --min [4] --max [8]

Generate with numbers

xkcdpass --valid-chars "[a-z0-9]"

说明

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.

参数

-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.

FAQ

What is the xkcdpass command used for?

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.

How do I run a basic xkcdpass example?

Run `xkcdpass` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n _COUNT_ do in xkcdpass?

Number of words.