hashsum¶
vb hashsum [OPTIONS] FILE...
Description¶
Compute or verify file hashes using any built-in hash algorithm.
Output format is: ALGO HASH PATH.
Options¶
- -a, --algorithm NAME¶
One of: md5, sha1, sha3[-{224|256|384|512}], blake3[-{128|256|384|512}], fnv32, fnv64, murmur3, xxh32, xxh64, xxh3[-64|-128]
- -c, --check FILE¶
Verify hashes from FILE (use - for stdin)
- -r, --recursive¶
Recurse into directories
- -h, --dereference¶
Follow symlinks instead of hashing link targets
- --size N¶
Override bit-length for sha3/blake3/xxh3
- --seed N¶
Seed value for murmur3 and xxh3 (decimal or 0x… )
- -q, --quiet¶
Suppress per-file OK output in –check mode
See also: md5sum, sha1sum, sha3sum, blake3sum, fnv32sum, fnv64sum, murmur3sum
Examples¶
Compute default hashes (sha3-256) for two files.
$ vb hashsum file1.txt dir/file2.txt
sha3-256 78ba0c354ff15c2c2423ef5fe725bd990cef933d75b970febe1ad7384fcfd518 file1.txt
sha3-256 0f49823468aa0e8e4a6830be14e8ae02070696f7d7f901ed3fce1a6f3e44e00a dir/file2.txt
Use a different algorithm and seed.
$ vb hashsum --algorithm xxh3-64 --seed 0x1234 data.bin
xxh3-64:seed=4660 e22ad81b145183d3 data.bin
Generate a checksum file and verify it later.
$ vb hashsum --check checks.txt
verify.txt: OK