Skip to main content

hex (Function)

This function returns a hexadecimal string by converting each byte of each character in the input string to two hexadecimal digits.

Syntax

<STRING> str:hex(<STRING> input.string)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
input.stringThe input string to derive the hexadecimal value.STRINGNoYes

Example 1

hex("MySQL")

This returns the hexadecimal value of the input.string. In this scenario, the output is "4d7953514c".