import base64


async def convertor_to_base64(text):
    """this function convert a text to base64 format"""
    message_bytes = text.encode('ascii')
    base64_bytes = base64.b64encode(message_bytes)
    base64_message = base64_bytes.decode('ascii')
    return base64_message