import hashlib


def get_sha256hash(input_file: str):
    """
    Summary:
        creates a sha256 hash for the given file

    Parameters:
        input_file (str): the input file

    Returns:
        the hash
    """

    with open(input_file, "rb") as file:
        file_bytes = file.read() #read entire file as bytes
        output = hashlib.sha256(file_bytes).hexdigest()
        return output