encode hex
for formats
Hex encode a binary value or a string.
Signature
> encode hex {flags}
Flags
--lower, -
: Encode to lowercase hex.
Input/output types:
input | output |
---|---|
binary | string |
string | string |
Examples
Encode a binary value
> 0x[C3 06] | encode hex
C306
Encode a string
> "hello" | encode hex
68656C6C6F
Output a Lowercase version of the encoding
> 0x[AD EF] | encode hex --lower
adef