Calculates the md5 hash of a string