X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=make-cracking-dictionary.py;h=37de917608fb63b9f730fcf04cfc8c86035e7e58;hb=ea67e6df3465d064bdbcecd527ba39872bdefbf7;hp=f2ba6cbf8c02500fe276510cead64a0d2ca662dd;hpb=3906e8a686e3d1943e22746b65c394a4def34fc0;p=cipher-tools.git

diff --git a/make-cracking-dictionary.py b/make-cracking-dictionary.py
index f2ba6cb..37de917 100644
--- a/make-cracking-dictionary.py
+++ b/make-cracking-dictionary.py
@@ -6,11 +6,13 @@ cracklib = set(open('/usr/share/dict/cracklib-small', 'r').readlines())
 
 words = american | british | cracklib
 
-sanitised_words = set()
+# sanitised_words = set()
 
-for w in words:
-    sanitised_words.add(language_models.sanitise(w))
+# for w in words:
+    # sanitised_words.add(language_models.sanitise(w))
     
+sanitised_words = set(language_models.sanitise(w) for w in words)
+
 sanitised_words.discard('')
 
 with open('words.txt', 'w') as f: