chksum-cli 0.2.0

A simple checksum calculator.
Documentation
chksum-cli-0.2.0 has been yanked.

chksum-cli

GitHub Coverage MSRV deps.rs unsafe forbidden LICENSE

A simple checksum calculator.

Motivation

There are variety of tools that allows calculate hash digests.

However tools like md5sum, sha1sum, b2sum, sha224sum and others offer only file-based checksums.

find dir/ -type f | sort | xargs cat | sha224sum

Instead you can just use chksum with preffered hash algorithm.

chksum sha2-224 dir/

Features

  • Written in pure Rust
  • No unsafe code
  • Multithread

Installation

Use cargo install to install chksum binary in $HOME/.cargo/bin directory.

cargo install chksum-cli

Usage

$ chksum help
A simple checksum calculator.

Usage: chksum <COMMAND>

Commands:
  md5       Calculate MD5 digest
  sha1      Calculate SHA-1 digest
  sha2-224  Calculate SHA-2 224 digest
  sha2-256  Calculate SHA-2 256 digest
  sha2-384  Calculate SHA-2 384 digest
  sha2-512  Calculate SHA-2 512 digest
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version
$ chksum help sha2-224
Calculate SHA-2 224 digest

Usage: chksum sha2-224 <PATH>...

Arguments:
  <PATH>...  Path to file or directory

Options:
  -h, --help  Print help
$ chksum sha2-224 LICENSE
99258bca0d23c69388dd53412f1009132753b89459359a401a6ed158        LICENSE
$ chksum sha1 src/
598c9268d2078e12bc0c32ff40ebb8ee9f8351ea        src/

Library

Check chksum crate to see the library that allows you to calculate digests of files and directories with easy-to-use interface.

Hash algorithms

Implemented hash algorithms:

Disclaimer

Code is under development. The interface may change in the future.

License

MIT