hfile
hfile is a command-line interface (CLI) tool for generating cryptographic hashes from files while also facilitating the identification of duplicates.
For regular files, the default BLAKE3 path uses memory-mapped, multithreaded hashing
to stay close to b3sum throughput while keeping the CLI output unchanged.
Supported algorithms:
- Blake3 (default)
- md5
- sha1
- sha256
- sha384
- sha512
Current options:
Examples
Default BLAKE3 hash for a single file:
Show the hash and file size:
Use a different algorithm:
Hash every file under a directory:
Print only duplicate files found under a directory:
Create a SHA-256 checksum file that GNU sha256sum -c can verify:
Create and verify checksums for all files under a directory:
Verify the same checksum file with hfile:
Do not use -s when creating checksum files, since the extra size column is for display only.
Performance comparison:
compare-blake3 benchmarks the portable release build against b3sum on the fixture
file and a generated 256 MiB regular file. compare-blake3-native reruns the same
comparison with target-cpu=native for local headroom checks.