### Install b3sum Source: https://docs.rs/b3sum/latest/b3sum Commands to install or build the b3sum utility using Cargo. ```bash cargo install b3sum ``` ```bash cargo install --path . ``` ```bash cargo build --release ``` -------------------------------- ### View b3sum CLI usage Source: https://docs.rs/b3sum/latest/b3sum Displays the command-line interface options and arguments for b3sum. ```text Usage: b3sum [OPTIONS] [FILE]... Arguments: [FILE]... Files to hash, or checkfiles to check Options: --keyed Use the keyed mode, reading the 32-byte key from stdin --derive-key Use the key derivation mode, with the given context string -l, --length The number of output bytes, before hex encoding [default: 32] --seek The starting output byte offset, before hex encoding [default: 0] --num-threads The maximum number of threads to use --no-mmap Disable memory mapping --no-names Omit filenames in the output --raw Write raw output bytes to stdout, rather than hex --tag Output BSD-style checksums: BLAKE3 ([FILE]) = [HASH] -c, --check Read BLAKE3 sums from the [FILE]s and check them --quiet Skip printing OK for each checked file -h, --help Print help (see more with '--help') -V, --version Print version ``` -------------------------------- ### Benchmark hashing performance Source: https://docs.rs/b3sum/latest/b3sum Compares the performance of SHA-256 and BLAKE3 by hashing a 1 GB file. ```bash # Create a 1 GB file. head -c 1000000000 /dev/zero > /tmp/bigfile # Hash it with SHA-256. time openssl sha256 /tmp/bigfile # Hash it with BLAKE3. time b3sum /tmp/bigfile ``` -------------------------------- ### Hash a file Source: https://docs.rs/b3sum/latest/b3sum Calculates the BLAKE3 hash of a specific file. ```bash b3sum foo.txt ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.