How to correct TypeError: Unicode-objects must be encoded before hashing?
It is probably looking for a character encoding from wordlistfile. wordlistfile = open(wordlist,”r”,encoding=’utf-8′) Or, if you’re working on a line-by-line basis: line.encode(‘utf-8′) EDIT Per the comment below and this answer. My answer above assumes that the desired output is a str from the wordlist file. If you are comfortable in working in bytes, then you’re … Read more