import hashlib
Str = "anython text"
h1 = hashlib.md5()
h1.update(str.encode(encoding="utf-8"))
print(h1.hexdigest()) ##返回加密后的字符
import hashlib
Str = "anython text"
h1 = hashlib.md5()
h1.update(str.encode(encoding="utf-8"))
print(h1.hexdigest()) ##返回加密后的字符