greycubesgav / integrity

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Build And Test

Integrity

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

Features

  • Supports Linux, FreeBSD and OSX
  • Checksum data is stored in the file's extended attributes so can move with the file
  • Multiple checksum algorithms available (defaults to sha1)
    • md4
    • md5
    • sha1
    • sha224
    • sha256
    • sha384
    • sha512
    • md5sha1
    • ripemd160
    • sha3 224
    • sha3 256
    • sha3 384
    • sha3 512
    • sha512 224
    • sha512 256
    • blake2s 256
    • blake2b 256
    • blake2b 384
    • blake2b 512

Simple Usage examples

Add checksum data to a file

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

Display checksum data stored with file

integrity -l file.dat

Validate the file still matches the stored checksum

integrity -c file.dat

Advanced Usage Examples

Add a sha256 checksum to a file

integrity --digest sha256 -a file.dat

Alternatively the Environment variable I_DIGEST may be used

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

List all the checksums stored with a file

integrity -l -x file.dat

About

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

License:GNU General Public License v3.0


Languages

Language:Go 77.2%Language:Makefile 13.6%Language:Shell 8.2%Language:Dockerfile 0.9%