Hex
Hex object is used to encode/decode text/binary in hexadecimal format.
- Module:
utils/v4/hex
- Alias:
utils/hex
- Definition: https://github.com/eclipse/dirigible/issues/23
- Source: /utils/v4/hex.js
- Facade: HexFacade
- Status:
stable
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 |