import hashlib obj = hashlib.md5(bytes("abc",encoding="utf-8")) #md5是一种加密方法 obj.update(bytes("123456", encoding="utf-8")) #下面的123456会被上面的abc所结合成为新的加密字符 result = obj.hexdigest() print(result)
posted on 2018-06-28 22:21 你是不夜星空 阅读(132) 评论(0) 编辑 收藏 举报