def METHOD_NAME(message: bytes) -> tuple[bytes, bytes]:
    """Encrypt the given value using Fernet 32 byte key.
    @return: a tuple with the generated key and the encrypted message. Both as bytes.
    """
    key = Fernet.generate_key()
    fernet = Fernet(key)
    token = fernet.encrypt(message)
    return key, token