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()
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()