import hashlib


def compare_passwords(hashed: str, password: str, salt: str) -> bool:
    """
    Compares hashed password for authentication.

    :param hashed: Hashed password to compare.
    :type hashed: str
    :param password: Plain text password to hash.
    :type password: str
    :param salt: Password salt.
    :type salt: str
    """
    return hashed == hashlib.sha256(password.encode('utf-8') + salt.encode('utf-8')).hexdigest()