Add sha256 to the hash command (#3836)

Hashers now uses on Rust Crypto Digest trait which makes it trivial to
implement additional hash functions.

The original `md5` crate does not implement the Digest trait and was
replaced by `md-5` crate which does. Sha256 uses already included `sha2`
crate.
This commit is contained in:
Peter Cunderlik
2021-07-25 20:08:08 +01:00
committed by GitHub
parent 226739d13f
commit 111477aa74
7 changed files with 173 additions and 54 deletions

View File

@ -85,6 +85,7 @@ pub fn create_default_context(interactive: bool) -> Result<EvaluationContext, Bo
whole_stream_command(Hash),
whole_stream_command(HashBase64),
whole_stream_command(HashMd5),
whole_stream_command(HashSha256),
whole_stream_command(Split),
whole_stream_command(SplitColumn),
whole_stream_command(SplitRow),