python之加密

import hashlib

obj = hashlib.md5(bytes('adfasfasdfsfasf',encoding = 'utf-8'))
obj.update(bytes('123',encoding='utf-8'))
result = obj.hexdigest()
print(result)

 

posted @ 2016-07-30 21:38  永远之晨曦  阅读(176)  评论(0编辑  收藏  举报