import hashlib
def make_password(mypass): md5=hashlib.md5() sign_utf8=mypass.encode(encoding='utf-8') md5.update(sign_utf8) md5_server=md5.hexdigest() return md5_server print(make_password('123456'))
import hashlib
def make_password(mypass): md5=hashlib.md5() sign_utf8=mypass.encode(encoding='utf-8') md5.update(sign_utf8) md5_server=md5.hexdigest() return md5_server print(make_password('123456'))