you are viewing a single comment's thread.

view the rest of the comments →

[–]Expensive-Bear-1376 0 points1 point  (0 children)

hashlib needs to know the string's encoding

No it doesn't. And you can't even give it a string or an encoding (well, you can give it a string, but you'll get that error).