from xkcd_password import generate_wordlist, generate_xkcdpassword
# create a wordlist
-mywords = generate_wordlist(wordfile='3esl.txt', min_length=5, max_length=8,)
+mywords = generate_wordlist(wordfile='3esl.txt', min_length=5, max_length=8,)
# create a password with the acrostic 'face'
print generate_xkcdpassword(mywords, acrostic="face")
return words
-def generate_xkcdpassword(wordlist, n_words=4, interactive=False, acrostic=False):
+def generate_xkcdpassword(wordlist,
+ n_words=4,
+ interactive=False,
+ acrostic=False):
"""
Generate an XKCD-style password from the words in wordlist.
"""