Skip to content

Hex

Hex object is used to encode/decode text/binary in hexadecimal format.

Basic Usage

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

response.println(hex.encode("Hex Encoded"));
response.println(hex.decode("48657820456e636f646564"));

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

Functions


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