def login(user,password):
md5=hashlib.md5()
md5.update(password.encode('utf-8'))
m=md5.hexdigest()
if db[user]==m:
return True
else:
return False
Sign in to make a reply
Shadow丶crown
def login(user,password):
md5=hashlib.md5()
md5.update(password.encode('utf-8'))
m=md5.hexdigest()
if db[user]==m:
return True
else:
return False