Skip to content

GoLang built Command line utility for storing, displaying and checking a file's digest checksum

License

Notifications You must be signed in to change notification settings

greycubesgav/integrity

Repository files navigation

Test, Build & Package go report card Go Coverage License: LGPL v2.1

Integrity

Cross platform command line tool for storing, displaying and checking a file's checksum.

Check your files have not become corrupted over time.

demo of integrity add and check

Features

  • 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

Simple Usage examples

Add checksum data to a file

$> integrity -a file.dat
file.dat : sha1 : added

demo of integrity add

Display checksum data stored with file

integrity -l file.dat

demo of integrity list

Validate the file still matches the stored checksum

integrity -c file.dat

demo of integrity check

Custom Checksum Usage Examples

Add a phash checksum verbosly to an image using the phash binary

integrity.phash -v -a image.jpg

demo of integrity add phash checksum verbosely to an image

Add a blake2b_256 checksum verbosly to a file

integrity --digest blake2b_256 -v -a file.dat

demo of integrity add blake2b_256 checksum verbosly

Alternatively the Environment variable INTEGRITY_DIGEST may be used

export INTEGRITY_DIGEST="sha256"; integrity -a file.dat

List all potential checksums stored with a file

integrity -l -x file.dat

demo of integrity add blake2b_256 checksum verbosly

About

GoLang built Command line utility for storing, displaying and checking a file's digest checksum

Resources

License

Stars

Watchers

Forks

Packages

No packages published