From: Scott Tankard Date: Tue, 29 Mar 2016 05:16:25 +0000 (-0700) Subject: Deduplicate wordlist for added security X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=00e576e7652db2f04acae2e8bcec8c160b2ae1df;p=redacted-XKCD-password-generator.git Deduplicate wordlist for added security Particular benefit when working with 3rd party/untrusted/downloaded wordlists. --- diff --git a/xkcdpass/xkcd_password.py b/xkcdpass/xkcd_password.py index 13a9115..8342b69 100755 --- a/xkcdpass/xkcd_password.py +++ b/xkcdpass/xkcd_password.py @@ -115,7 +115,7 @@ def generate_wordlist(wordfile=None, wlf.close() - return words + return list(set(words)) # deduplicate, just in case def wordlist_to_worddict(wordlist):