python3 生成MD5 方法

import hashlib
data = 123
md5 = hashlib.md5(data.encode(encoding='UTF-8')).hexdigest()
print(md5)
output:
202cb962ac59075b964b07152d234b70
原文地址:https://www.cnblogs.com/royfans/p/14875565.html