Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    base64-encode() Function (slax Namespace)

    Namespaces

    http://xml.libslax.org/slax

    SLAX Syntax

    string slax:base64-encode(string)

    Release Information

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

    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

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

    Published: 2013-03-05