Skip to content

qie.hexEncodeBytes

Signature: qie.hexEncodeBytes(input)

Returns: String hexString - the HEX string

Hex encode the input value.

Parameters

Type Name Description Default
byte[] input the byte array to be HEX encoded

Example

var helloWorld = new java.lang.String("Hello World!");
var bytes = helloWorld.getBytes(java.nio.charset.StandardCharsets.UTF_8);   // byte[]
var hexEncodedBytes = qie.hexEncodeBytes(bytes);                            // 48656c6c6f20576f726c6421