verisum v0.2.2

A more comfortable hash checker

verisum

test Lines of Code

verisum makes the output of md5sum -c or sha256sum -c prettier.

Installation

You can download pre-compiled binaries from GitHub Release.

To compile from source code, follow the steps below:

git clone https://github.com/kojix2/verisum
cd verisum
shards build --release
sudo cp bin/verisum /usr/local/bin/

Homebrew:

brew install kojix2/brew/verisum

Usage

  Options;
    -c, --calc              Compute checksums
    -a, --algorithm ALGO    (md5|sha1|sha256|sha512)
    -A, --absolute          Output absolute path [false]
    -v, --verbose           Output checksums and errors, etc [false]
    -C, --chdir DIR         Change working directory before processing
    -N, --no-clear          Do not clear the line after output [false]
        --color WHEN        When to use color (auto|always|never) [auto]
    -D, --debug             Print a backtrace on error
    -h, --help              Show this message
    -V, --version           Show version

Verification

To verify the checksums with:

verisum md5.txt

Example output:

4 files in md5.txt
4 files, 4 success, 0 mismatch, 0 errors  (0.0 seconds)

Calculation

We recommend using standard Unix commands for calculations, but if standard Unix commands are not available, you can also use this tool for calculations.

Note that the effect of the -c option is the opposite of md5sum.

verisum -c -a md5 * | tee md5.txt

Sort the file list before calculating the checksums:

find . -type f | sort | xargs verisum -c -a md5 | tee md5.txt

Example output:

62525c1aa35e61fb4e60c053e1faa849  LICENSE
3be217b6d3ac7c38e1805b01b1be0178  README.md
cb9c37b1954a07579e044e33521c993d  shard.lock
c680044745baa4b423450c9ecb8baebb  shard.yml

Development

Pull requests are welcome.

License

MIT

Repository

verisum

Owner
Statistic
  • 1
  • 0
  • 2
  • 0
  • 0
  • 14 days ago
  • June 15, 2024
License

MIT License

Links
Synced at

Thu, 06 Aug 2026 15:58:30 GMT

Languages