encodes to base64 or decodes to binary