From: Steven Tobin Date: Mon, 4 Mar 2013 17:22:04 +0000 (+0000) Subject: added import example. renamed main script to allow import X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=792d8c907b2c26c40978f4a1e6979e840fb92d76;p=redacted-XKCD-password-generator.git added import example. renamed main script to allow import xkcd-password.py is renamed to xkcd_password.py to fix an issue with python's import command --- diff --git a/example_import.py b/example_import.py new file mode 100644 index 0000000..28465c6 --- /dev/null +++ b/example_import.py @@ -0,0 +1,8 @@ +# import the generate_xkcdpassword and generate_wordlist functions +from xkcd_password import generate_wordlist, generate_xkcdpassword + +# create a wordlist +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") diff --git a/xkcd-password.py b/xkcd_password.py similarity index 100% rename from xkcd-password.py rename to xkcd_password.py