标签:
import hashlib obj = hashlib.md5(bytes(‘adfasfasdfsfasf‘,encoding = ‘utf-8‘)) obj.update(bytes(‘123‘,encoding=‘utf-8‘)) result = obj.hexdigest() print(result)
python之加密
原文地址:http://www.cnblogs.com/chenxiforever/p/5721804.html