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 |
|---|---|
| string | string |
| binary | string |
Examples
Encode a binary value
> 0x[C3 06] | encode hex
C306Encode a string
> "hello" | encode hex
68656C6C6FOutput a Lowercase version of the encoding
> 0x[AD EF] | encode hex --lower
adef