string.string.to_hex
Declaration
lua
string.to_hex(data)
Description
Convert binary data to hex string.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
data | string | Required | — | Binary data |
Return Values
| Type | Description |
|---|---|
| string | Lowercase hex |
Example
lua
("ABC"):to_hex() -- "414243"