MD5 加盐
# md5 加盐 fqs import hashlib def get_md5_y(psw,salt): psw += salt obj_psw_md5 = hashlib.md5(psw.encode('utf-8')) obj_str = obj_psw_md5.hexdigest() print(obj_str) if __name__ == '__main__': p = 'doudou' s = 'fqs' get_md5_y(p,s)
'''
e56e5e3dfe9f3e515035a33ab5160d05
'''