import hashlib


def get_template_hash(*, template: bytes) -> str:
    """
    Get a hash of a template.

    Args:
        template: the template in UTF-8 format.

    Returns:
        The hash.
    """
    return hashlib.sha256(template).hexdigest()[0:6]