2018年11月12日

python的MD5

摘要: import hashlib def md5(str0): hl = hashlib.md5()# 创建md5对象 hl.update(str0.encode(encoding='utf-8'))#此处必须声明encode #print('MD5加密前为 :' + str);print('MD5加密后为 :' + hl.hexdigest()) return hl... 阅读全文

posted @ 2018-11-12 16:29 andy_1 阅读(145) 评论(0) 推荐(0) 编辑

导航