nushell/crates/nu-command/src/strings/encode_decode
uaeio d0aa69bfcb
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>
2023-03-24 12:25:26 +01:00
..
base64.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
decode_base64.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
decode_hex.rs Decode and Encode hex (#8392) 2023-03-24 12:25:26 +01:00
decode.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
encode_base64.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
encode_hex.rs Decode and Encode hex (#8392) 2023-03-24 12:25:26 +01:00
encode.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
encoding.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
hex.rs Decode and Encode hex (#8392) 2023-03-24 12:25:26 +01:00
mod.rs Decode and Encode hex (#8392) 2023-03-24 12:25:26 +01:00