Compare checksums from the command line
Project description
chksum
CLI for comparing two checksums
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 strings, the algorithm is not needed. Default is md5.
Arguments can be passed in any order
E.g. the following are equivalent:
chksum <PathToFile> <PathToDir> sha256 -d
chksum -d <PathToDir> sha256 <PathToFile>
Interactive mode
Use -i
to enter the interactive mode where arguments can be passed one at a time.
$ chksum -i
_ _
| | | |
___| |__ | | _____ _ _ _ __ ___
/ __| '_ \| |/ / __| | | | '_ ` _ \
| (__| | | | <\__ \ |_| | | | | | |
\___|_| |_|_|\_\___/\__,_|_| |_| |_|
Copyright (c) 2022, espehon
All rights reserved.
ALGORITHMS = ['md5', 'sha1', 'sha256', 'sha512']
Enter Algorithm or path to File or Directory >
Inputs are checked after each entry and the prompt is updated accordingly
Enter Algorithm or path to File or Directory > ./
Directory entered.
Enter Algorithm or path to File or Directory > ./
Directory entered.
Enter Algorithm > md5
Algorithm entered.
Do you want to include '.' (dot) files? [Y/n] > n
ignore_dots = True
-------------[MD5]--------------
23bbc59717b7375774fe97cbfc5fd12c
23bbc59717b7375774fe97cbfc5fd12c
√ Hashes Match
Authors
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chksum-cli-0.3.0.tar.gz
(19.4 kB
view hashes)
Built Distribution
chksum_cli-0.3.0-py3-none-any.whl
(19.6 kB
view hashes)
Close
Hashes for chksum_cli-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a043ce4019bc5bce88da25fb02f4b61e64098f6d595a1e975e48bc97146064a8 |
|
MD5 | 9dbae545ddeb2952715abcccbc81cc07 |
|
BLAKE2b-256 | 8d3e152612474ad4ad7f184a58c185b9dc2654bb11846a812564b15b52d2a661 |