Cross platform command line tool for storing, displaying and checking a file's checksum.
Check your files have not become corrupted over time.
- Supports Linux, FreeBSD and OSX
- Checksum data is stored in the file's extended attributes so moves with the file.
- Multiple checksum algorithms available (defaults to sha1)
MD Functions | SHA Functions | SHA3 + SHA512 Functions | Blake Functions | File Type Specific Functions |
---|---|---|---|---|
md5 | [sha1] | sha3 224 | blake2s 256 | phash (images) |
md5sha1 | sha224 | sha3 256 | blake2b 256 | ohash (videos) |
sha256 | sha3 384 | blake2b 384 | ||
sha384 | sha3 512 | blake2b 512 | ||
sha512 | sha512 224 | |||
sha512 256 |
$> integrity -a file.dat
file.dat : sha1 : added
integrity -l file.dat
integrity -c file.dat
integrity.phash -v -a image.jpg
integrity --digest blake2b_256 -v -a file.dat
Alternatively the Environment variable INTEGRITY_DIGEST may be used
export INTEGRITY_DIGEST="sha256"; integrity -a file.dat
integrity -l -x file.dat