import hashlib
starttime = '2019-10-10'
endtime = '2019-10-31 12:00:00'
str = '{},{},{}'.format(starttime,endtime,'qzsoftProjectByTime')
def Md5(str):
md =hashlib.md5()
md.update(str.encode())
res = md.hexdigest()
md5 = res.upper() #大写
print(md5)
return md5
if __name__ == '__main__':
Md5(str)
python实现md5加密
最新推荐文章于 2024-10-03 13:06:43 发布