checksum 0.2.0

checksum - Command line file checksum validator.

Determine a checksum for a file

checksum checks a file and returns a checksum for md5, sha1, and sha2 (sha256 and sha512).

To use checksum you would simply provide a file path and it will return the sum for the file.

Examples

  • checksum -f="relative\path"
  • checksum "relative\path"
  • checksum -f="c:\absolute\path" -t=sha256

Validate a file against an existing signature

You can also check against an existing signature. To validate against an existing signature (hash) you would simply provide the file and the expected signature. When checking a signature, if the signature is valid it exits with 0, otherwise it exits with a non-zero exit code.

Examples

  • checksum -f="c:\absolute\path" -c=8AC4EA9A7B18E67EA97088220C40041B355A2C3049AA4E290D1F65A94BEFA9EF
  • checksum -f="c:\absolute\path" -c=8AC4EA9A7B18E67EA97088220C40041B355A2C3049AA4E290D1F65A94BEFA9EF -t sha256

SYNOPSIS

checksum [-t=sha1|sha256|sha512|md5] [-c=signature] [-f=]filepath

OPTIONS

-?, --help, -h
  Prints out the options.
-f, --file=VALUE
  REQUIRED: file - The is the name of the file. The file should exist
-t, --type, --hashtype=VALUE
  Optional: hashtype - 'md5', 'sha1', 'sha256', or 'sha512'. Defaults to 'md5' or is determined by length of passed check value.
-c, --check=VALUE
  Optional: check - the signature you want to check. Not case sensitive.
下载次数: 31 724
大小: 17.49 kB
更新日期: 28.01.2019
分配方案: 免费软件
操作系统: Windows 7 x64, Windows 8 x64,
Windows 8.1 x64, Windows 10 x64, Windows 11 x64