Skip to content

v0.2.0-beta

Pre-release
Pre-release

Choose a tag to compare

@espehon espehon released this 01 Dec 02:58
· 47 commits to main since this release

New optional for running in interactive mode: --interactive
[-i] should override all other options/positionals just like [-?]

usage: CHKSUM [-?] [-i] [-d] position1 position2 [position3]

Calculate and compare the checksums of files or directories.
Can also compare against pasted strings.
ALGORITHMS = ['md5', 'sha1', 'sha256', 'sha512']

positional arguments:
position1 Checksum, file, or algorithm
position2 Checksum, file, or algorithm
position3 Checksum, file, or algorithm

options:
-?, --help Show this help message and exit.
-i, --interactive Run in interactive mode
-d, --dots Ignore '.' (dot) files from directories

If the first 2 positional arguments are checksums, the algorithm is not needed. Default is md5.
Example 1: chksum ./file1 ./file2 sha512
Example 2: chksum 123456789ABCDEF 123456789ABCDEF
Example 3: chksum ./dir 123456789ABCDEF