import hashlib


def _encode_filename(filename: str) -> str:
    """
    Encodes filename to SHA256 string

    :param filename: name of file

    :return: encoded filename as SHA256 string
    """
    return hashlib.sha256(filename.encode()).hexdigest()