def check_password(password_input,password_hash):
try:
hashpw = hashlib.sha224()
hashpw.update(password)
data = hashpw.hexdigest()
if data == passworddb:
return True
else:
return False
except Exception:
return False
文章目录