hashlib 加密

1 import hashlib
2 
3 def md5(args):
4     hash = hashlib.md5(bytes('aaadf',encoding='utf-8'))
5     hash.update(bytes(args,encoding='utf-8'))
6     return hash.hexdigest()

 

posted @ 2017-02-18 18:09  Erick-LONG  阅读(104)  评论(0编辑  收藏  举报