import base64


def dnstxtencode(data):
    """
    encodes data in a DNS transmittable TXT form, so we use base64 for now
    :param data: data to encode
    :return: encoded form
    """

    return base64.b64encode(data)