added import example. renamed main script to allow import
authorSteven Tobin <steventtobin (at) gmail.com>
Mon, 4 Mar 2013 17:22:04 +0000 (17:22 +0000)
committerSteven Tobin <steventtobin (at) gmail.com>
Mon, 4 Mar 2013 17:22:04 +0000 (17:22 +0000)
xkcd-password.py is renamed to xkcd_password.py to fix an issue with
python's import command

example_import.py [new file with mode: 0644]
xkcd_password.py [moved from xkcd-password.py with 100% similarity]

diff --git a/example_import.py b/example_import.py
new file mode 100644 (file)
index 0000000..28465c6
--- /dev/null
@@ -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")
similarity index 100%
rename from xkcd-password.py
rename to xkcd_password.py
git clone https://git.99rst.org/PROJECT