1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-30 03:16:23 +02:00
BLAKE3/b3sum
Jack O'Connor b1b507d43a make b3sum --keyed and --derive-key read the key from stdin
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.
2019-12-13 16:10:55 -05:00
..
src make b3sum --keyed and --derive-key read the key from stdin 2019-12-13 16:10:55 -05:00
tests make b3sum --keyed and --derive-key read the key from stdin 2019-12-13 16:10:55 -05:00
Cargo.toml make b3sum --keyed and --derive-key read the key from stdin 2019-12-13 16:10:55 -05:00
README.md add to b3sum/README.md 2019-12-13 13:10:05 -05:00

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.