from hashlib import md5 def hash_password(password: str) -> str: return md5(password.encode()).hexdigest() def verify_password(password: str, hashed_password: str) -> bool: return hash_password(password) == hashed_password