Skip to content

Base64

Base64 object is used to encode/decode in base64.

Basic Usage

var base64 = require("utils/v4/base64");
var response = require("http/v4/response");

response.println(base64.encode("admin:admin"));
response.println(base64.decode("YWRtaW46YWRtaW4="));

response.flush();
response.close();

Functions


Function Description Returns
encode(input) Encode an input string to Base64 string
decode(input) Decode an input string from Base64 string
Back to top