import base64


def encode(message):
    """
    Encodes the message in base64

    Args:
        message (str/list): message to encode

    Returns:
        str: encoded message in base64

    """
    message_bytes = message.encode("ascii")
    encoded_base64_bytes = base64.b64encode(message_bytes)
    encoded_message = encoded_base64_bytes.decode("ascii")
    return encoded_message