File hash checker represents a minimal solution meeting the following requirements:
- Calculate the BLAKE3, SHA256, and/or SHA512 hashes of one or more files in
sequence (for loop, iterator) or parallel (threading, messaging,
rayonparallel iterator) - Provide library API
- Benchmarks via
criterion - Minimal dependencies:
blake3,sha2,anyhow,clap,rayon - Provide a CLI utiility:
- Simpler and more straightforward usage than
sha256sum,b3sum - Save the hash to an adjacent hash file (if it doesn't already exist)
(
.sha256,.sha512,.b3) - Compare the current hash to an adjacent hash file (if it exists)
- Simpler and more straightforward usage than
$ fhc -h
!run:../target/release/fhc -h
$ fhc -V
!run:../target/release/fhc -V
- Run
fhcagainst one or more files to calculate and print the SHA256 or BLAKE3 hash for each file to stdout and save in adjacent hash files. - At any later point, run
fhcagainst one or more files with adjacent hash files to re-calculate the hash for each file and reportOKif the hashes match andFAILEDif the hashes do not match.
!inc:../CHANGELOG.md