Decode and Encode hex (#8392)

# Description

I need a command that will transform hex string into bytes and into
other direction.

I've implemented `decode hex` command and `encode hex` command. (Based
on `encode base64` and `decode base64` commands
# User-Facing Changes

```
> '010203' | decode hex
0x[01 02 03]
```

and 

```
> 0x[01 02 0a] | encode hex
'01020A'
```

---------

Co-authored-by: whiteand <andrewbeletskiy@gmail.com>
This commit is contained in:
uaeio
2023-03-24 13:25:26 +02:00
committed by GitHub
parent 4a1d12462f
commit d0aa69bfcb
5 changed files with 343 additions and 0 deletions

View File

@ -168,6 +168,8 @@ pub fn create_default_context() -> EngineState {
Encode,
DecodeBase64,
EncodeBase64,
DecodeHex,
EncodeHex,
DetectColumns,
Format,
FileSize,