Method String.string2hex() Method string2hex string string2hex(string data, void|int(0..) flags) Description Convert a string of binary data to a hexadecimal string. Parameter flags The binary or of the following flags: 1Use upper case characters. 2The input is in little-endian byte order. See also hex2string()