# blake2_bin The [`blake2_bin`](https://crates.io/crates/blake2_bin) crate provides the `blake2` command line utility, based on the [`blake2b_simd`](https://crates.io/crates/blake2b_simd) and [`blake2s_simd`](https://crates.io/crates/blake2s_simd) implementations of BLAKE2. It supports BLAKE2b, BLAKE2s, BLAKE2bp, and BLAKE2sp. # Installation ``` cargo install blake2_bin ``` # Example ``` # Hash standard input, using BLAKE2b by default. $ echo hello world | blake2 fec91c70284c72d0d4e3684788a90de9338a5b2f47f01fedbe203cafd68708718ae5672d10eca804a8121904047d40d1d6cf11e7a76419357a9469af41f22d01 # Since BLAKE2b is the default, explicitly adding the -b flag gives the same result. $ echo hello world | blake2 -b fec91c70284c72d0d4e3684788a90de9338a5b2f47f01fedbe203cafd68708718ae5672d10eca804a8121904047d40d1d6cf11e7a76419357a9469af41f22d01 # Using the -s and -p flags together gives BLAKE2sp. $ echo hello world | blake2 -sp 43958a843c00345bae4492cc04ecd1e47453469afeae277e067cad66244625eb # The full set of command line options. $ blake2 --help USAGE: blake2 [FLAGS] [OPTIONS] [inputs]... FLAGS: -b Use the BLAKE2b hash function (default) -h, --help Prints help information --last-node Set the last node flag --mmap Read input with memory mapping -p Use the parallel variant, BLAKE2bp or BLAKE2sp -s Use the BLAKE2s hash function -V, --version Prints version information OPTIONS: --fanout Set the fanout parameter --inner-hash-length Set the inner hash length parameter --key Set the key parameter with a hex string --length Set the length of the output in bytes --max-depth Set the max depth parameter --max-leaf-length Set the max leaf length parameter --node-depth Set the node depth parameter --node-offset Set the node offset parameter --personal Set the personalization parameter with a hex string --salt Set the salt parameter with a hex string ARGS: ... Any number of filepaths, or empty for standard input ```