import hashlib
a = "81228"
m = hashlib.md5()
m.update(a.encode('utf-8'))
print(m.hexdigest())
The argument must type into bytes
import hashlib
a = "81228"
m = hashlib.md5()
m.update(a.encode('utf-8'))
print(m.hexdigest())
The argument must type into bytes