#file-checksum #data-integrity #checksum #hashing

bin+lib checkasum

A small utility to verify the data integrity of a downloaded file with its expected checksum

9 releases (stable)

3.0.0 Apr 7, 2024
2.2.0 Jun 20, 2022
1.1.1 Jun 18, 2022
1.1.0 Jul 6, 2021
0.1.1 Jun 11, 2020

#8 in #file-checksum

MIT license

13KB
203 lines

checkasum

checkasum is a simple tool for hashing a file, and comparing the result with a known 'checksum' value. This allows the user to confirm the integrity of a file downloaded from the internet. If the value returned from hashing a file matches the given checksum, then chances are that the file has not been tampered with.

Examples

  • checkasum -m sha256 -p /path/to/file -e somechecksum
  • checkasum --method sha256 --path /path/to/file --expected somechecksum

Dependencies

~1.7–2.6MB
~50K SLoC