Try this with any text file you like..
import hashlib dict_fn = '/usr/share/dict/american-english' with open(dict_fn) as f: text = f.read() text = text.encode('utf-8') m = hashlib.md5() m.update(text) print(m.hexdigest())
This will give your the same results as
Note that the dictionary I reference is on Ubuntu and so is the md5sum command line program.
bivouac0 posted this
Have an answer?