首次加密
import hashlib
a = '123456'
input_name = hashlib.md5(a.encode('utf-8'))
print(input_name.hexdigest())
二次加密
def md5(s, b):
s = s + b
news = str(s).encode()
m = hashlib.md5(news)
return m.hexdigest()
print(md5('1232', 'aaaaa'))