import hashlib


def calc_hash(msg):
    """Compute and return SHA256 over msg.
    :param msg: Message over which hash is to be computed.
    :return: SHA256 Hex of `msg`.
    """
    return hashlib.sha256(msg).hexdigest()