convert String to MD5
Ok I am trying to write a basic converter of a string to md5 hash code but when I run my program I keep getting an error that say's: Traceback (most recent call last): File "C:\Users\Shane\Documents\Amer CISC\lab4.py", line 30, in <module> assertEqual (computeMD5hash("The quick brown fox jumps over the lazy dog"),("9e107d9d372bb6826bd81d3542a419d6")) File "C:\Users\Shane\Documents\Amer CISC\lab4.py", line 27, in computeMD5hash m.update(string) TypeError: Unicode-objects must be encoded before hashing My code looks like this: def computeMD5hash(string): import hashlib from hashlib import md5 m