title: Create rainbow table from words in text file with Python
body: <p>I'm looking to write a script to parse through a text file and create md4 hashes of every word in the text file. I want the output to be sent to a different text file. This is what I have so far:</p>
  
  <pre><code>import hashlib
  passwd = open(list.txt)
  lines = passwd.readlines()
  passwd.close()
  
  hash_object = hashlib.md4(passwd.encode()
  print(hash_object.hexdigest())
  </code></pre>