base64-decode() Function (SLAX)
Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.
Decode BASE64 encoded data. BASE64 is a means of encoding arbitrary data into a radix-64 format that is more easily transmitted, typically using STMP or HTTP.
Include the optional control string argument to replace any non-XML control characters in the decoded string with the specified string. If the argument is an empty string, non-XML characters are removed. The decoded data is returned to the caller.
control-string—(Optional) String to replace non-XML control characters in the decoded string. Use an empty string argument to remove the non-XML characters.
string—BASE64 encoded data.
var $real-data = slax:base64-decode($encoded-data, "@");