标签:int TE AC imp lib 编码 hash col 常用模块
import hashlib
# m=hashlib.md5()
# m.update("hallo world".encode("utf8"))
# print(m.hexdigest())# 5fd591a948dc76dd731f8998e19c773a 把"hallo world"转化成了16进制编码
#
#
# m.update("zhoubo".encode("utf8"))
# print(m.hexdigest())#5fd591a948dc76dd731f8998e19c773a
# #d3a7a17fab36ebc37763808b3d05797f
# m1=hashlib.md5()
# m1.update("hallo worldzhoubo".encode("utf8"))
# print(m1.hexdigest())#d3a7a17fab36ebc37763808b3d05797f
s=hashlib.sha256()#另一种转密算法
s.update("hallo worldzhoubo".encode("utf8"))
print(s.hexdigest())#0f0b1e45776176c210d3488caaa16b8cb9c6aab781f37d72ae685a2b5141624c
标签:int TE AC imp lib 编码 hash col 常用模块
原文地址:https://www.cnblogs.com/zbooo/p/9161717.html