13 releases (2 stable)

1.0.1 Dec 1, 2022
1.0.0 Jan 19, 2022
0.8.1 Mar 23, 2020
0.8.0 Apr 13, 2019
0.3.0 Mar 30, 2017

#7 in #xkcd

39 downloads per month

Apache-2.0

28KB
56 lines

xkpwgen

Generate XKCD 936 passwords:

Password Strength

Install

$ cargo install xkpwgen

Use

Invoke xkpwgen to generate five passwords:

$ xkpwgen
gains spate rush dine
stool added split skirt
venom foul slack rubs
leer merit ting slate
cribs flock stars help

Use -l to change the length of passwords, and -n to change the number of passwords:

$ xkpwgen -l 10 -n 2
goals tray guy mill mint cores focus kudos mares beady
ins hark sodas omit glove goofs spurt mash gait beer

See xkpwgen --help for more information.

Words

xkpwgen uses the pokerware wordlists by Christopher Wellons. His blog post explains in detail how he collected these wordlists. In essence the default “formal” wordlist comes from formal publications whereas the alternative “slang” wordlist collects popular words from Reddit comments.

License

Wordlist copyright (C) 2017 Christopher Wellons, released to public domain.


xkpwgen copyright (C) 2017–2022 Sebastian Wiesner

xkpwgen is licensed under Apache License, Version 2.0.

Dependencies

~1.4–2MB
~37K SLoC