摘要: ```python import hashlib # 要加密的信息 info = 'this is a test information' # 创建MD5对象 m = hashlib.md5() # 将待加密的信息转换为bytes b_info = info.encode('utf-8') # 对信息进程假面 m.update(b_info) # 获取密文 info_md5 = m.hexdige 阅读全文
posted @ 2020-03-29 16:19 凯旋.Lau 阅读(229) 评论(0) 推荐(0) 编辑