nushell/crates/nu-command/src/hash
Benoît Cortier 173d60d59d
Deprecate hash base64, extend decode and add encode commands (#5863)
* feat: deprecate `hash base64` command

* feat: extend `decode` and `encode` command families

This commit
- Adds `encode` command family
- Backports `hash base64` features to `encode base64` and `decode base64` subcommands.
- Refactors code a bit and extends tests for encodings
- `decode base64` returns a binary `Value` (that may be decoded into a string using `decode` command)

* feat: add `--binary(-b)` flag to `decode base64`

Default output type is now string, but binary can be requested using this new flag.
2022-06-26 00:35:23 +03:00
..
generic_digest.rs Fix command descriptions+examples (#5129) 2022-04-08 10:30:49 +02:00
hash_.rs Rename some files (#952) 2022-02-05 12:35:02 -05:00
md5.rs Remove Span::unknown (#525) 2021-12-19 18:46:13 +11:00
mod.rs Deprecate hash base64, extend decode and add encode commands (#5863) 2022-06-26 00:35:23 +03:00
sha256.rs Remove Span::unknown (#525) 2021-12-19 18:46:13 +11:00