

**1.6.2** move contributors to stand-alone CONTRIBUTORS file This can be mitigated by increasing the length of generated passphrases. Users should expect approximately an *order of magnitude* reduction in the strength of a five word passphrase. For this reason, `a filtered word list can be found in the github repo `_ (filtered by Twig Nyugen and included here with permission).Īn important caveat: due to the significant reduction in the size of the filtered word list when compared to the default, the strength of the corresponding passwords is also reduced. While we recommend the standard word list for most purposes, we note that this list is uncensored and, as such, generated passwords could offend. When used as an imported module, `generate_wordlist()` takes the following args (defaults shown):: Print(xp.generate_xkcdpassword(mywords, acrostic="face"))
#Password generator xkcd password#
# create a password with the acrostic "face" Mywords = xp.generate_wordlist(wordfile=wordfile, min_length=5, max_length=8) # create a wordlist from the default wordfile `example_json.py` demonstrates integration of xkcdpass into a Django project, generating password suggestions as JSON to be consumed by a Javascript front-end. An example of this usage is provided in `example_import.py `_, which randomly capitalises the letters in a generated password. The built-in functionality of ``xkcdpass`` can be extended by importing the module into python scripts. I explicitly release them to the public domain, but request acknowledgment of their use. The 12dicts lists were compiled by Alan Beale. The documentation for the 12Dicts project at It is the understanding of the author of ``xkcdpass`` that purely mechanical transformation does not imbue copyright in the resulting work. The default word list is derived mechanically from `12Dicts `_ by Alan Beale. The default word file can be found in ``xkcdpass/static/default.txt``. Report various metrics for given options, including word list entropyĪ large wordlist is provided for convenience, but the generator can be used with any word file of the correct format: a file containing one 'word' per line.

* ``-valid-chars=''`` using only lower-case letters (via regex).Ī concise overview of the available ``xkcdpass`` options can be accessed via:: * ``-min=5 -max=6`` with words between 5 and 6 characters long * ``-acrostic='chaos'`` the first letters of which spell 'chaos' * ``-count=5`` 5 passwords to choose from $ xkcdpass -count=5 -acrostic='chaos' -delimiter='|' -min=5 -max=6 -valid_chars='' Or you can mix whatever arguments you want:: Which returns a single password, using the default dictionary and default settings. > pinball previous deprive militancy bereaved numeric ``xkcdpass`` can be called with no arguments:: Python 2 (version 2.7 or later), or Python 3 (version 3.2 or later). The latest development version can be found on github: Ĭontributions welcome and gratefully appreciated! ``xkcdpass`` can be easily installed using pip:: A flexible and scriptable password generator which generates strong passphrases, inspired by `XKCD 936 `_::
