Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

base64-encode() Function (SLAX)

date_range 13-Jan-21

Namespaces

content_copy zoom_out_map
http://xml.libslax.org/slax

SLAX Syntax

content_copy zoom_out_map
string slax:base64-encode(string)

Description

Encode a string of data in the BASE64 encoding format. BASE64 is a means of encoding arbitrary data into a radix-64 format that is more easily transmitted, typically using STMP or HTTP.

Parameters

string

Input data string.

Return Value

string

Encoded data.

Usage Examples

content_copy zoom_out_map
var $encoded-data = slax:base64-encode($real-data);

Release Information

Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

footer-navigation