shasum(1)

shasum1

Print or check sha checksums

Usage

Usage: shasum [OPTION] ... [FILE] ...

produces same digest on Windows/Unix/Mac -0, --01 read in BITS mode

ASCII '0' interpreted as 0-bit,

ASCII '1' interpreted as 1-bit,

all other characters ignored

shasum -a 512224 -c checksumfile

and name for each FILE. The line starts with a `\' character if the

Report shasum bugs to [email protected]

Overview

Running shasum is often the quickest way to compute SHA message digests. The user simply feeds data to the script through files or standard input, and then collects the results from standard output.

The following command shows how to compute digests for typical inputs such as the NIST test vector "abc":

        perl -e "print qq(abc)" | shasum

Or, if you want to use SHA-256 instead of the default SHA-1, simply say:

        perl -e "print qq(abc)" | shasum -a 256

Since shasum mimics the behavior of the combined GNU sha1sum, sha224sum, sha256sum, sha384sum, and sha512sum programs, you can install this script as a convenient drop-in replacement.

Unlike the GNU programs, shasum encompasses the full SHA standard by allowing partial-byte inputs. This is accomplished through the BITS option (-0). The following example computes the SHA-224 digest of the 7-bit message 0001100:

        perl -e "print qq(0001100)" | shasum -0 -a 224

Releases

9 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

Author

Copyright (C) 2003-2023 Mark Shelor <[email protected]>.

From perl 5.40.1-6+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.