import binascii
import hmac
import hashlib


def daily_signature(key, message):
    """
    This function takes a key and message as input
    the key is the date which changes daily and message
    is the data to be hashed.
    It returns a hashed object for that message
    """
    byte_key = binascii.unhexlify(key)
    message = message.encode()
    return hmac.new(byte_key, message, hashlib.sha256).hexdigest().upper()