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())

posted on 2022-01-11 01:02  ttm6489  阅读(19)  评论(0编辑  收藏  举报

导航