Error reporting in python

pwd= "sw892130"
h1=hashlib.md5 ()
h1.update (str.encode (encode="utf-8"))

clipboard.png

Mar.25,2021


import hashlib
pwd="sw892130"
h1=hashlib.md5()
h1.update(pwd.encode('utf-8'))
print(h1.hexdigest())

I don't know where you got the strange syntax. Python3

is used here.
Menu