mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-30 03:16:23 +02:00
b1b507d43a
Putting secret keys on the command line is bad practice, because command line args are usually globally visible within the OS. Even if these flags are mostly intended for testing and experimentation, we might as well do the right thing. Plus this saves people the trouble of hex encoding their keys. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |
b3sum
b3sum 0.1.0
USAGE:
b3sum [FLAGS] [OPTIONS] [file]...
FLAGS:
-h, --help Prints help information
--no-names Omit filenames in the output.
-V, --version Prints version information
OPTIONS:
--derive-key <KEY> The key derivation mode.
--key <KEY> The keyed hashing mode.
-l, --length <LEN> The number of output bytes, prior to hex.
ARGS:
<file>...
Building
You can build and install with cargo install --path .
, which installs
binaries in ~/.cargo/bin
on Linux. Or you can just build with cargo build --release
, which puts the binary at ./target/release/b3sum
.
AVX-512 support (via C FFI, with dynamic CPU feature detection) and
multi-threading (via Rayon) are enabled by default. Note that the
underlying blake3
crate does not enable those by default.