编程语言
首页 > 编程语言> > python_hashlib_learning

python_hashlib_learning

作者:互联网

# author: Roy.G
import hashlib
m=hashlib.md5()
n=hashlib.md5()
y3="郭彦华"+"徐敏"

y5="郭彦华徐敏"
n.update(y5.encode("utf-8"))
# m.update(y4.encode("utf-8"))
m.update(y3.encode("utf-8"))
print(n.hexdigest())
print(m.hexdigest())
# print(m.hexdigest())
# y1="郭"
# y1=y1.encode("utf-8")
# print(y1)
# y2=m.update(y1)
# print(y2)
# print(y2.hexdigest())

标签:hashlib,utf,python,update,hexdigest,y1,learning,print,encode
来源: https://www.cnblogs.com/ttm6489/p/15786694.html