{
    "content": [
        {
            "type": "text",
            "text": "# shasum(1) (man)\n\n**Summary:** shasum - Print or Check SHA Checksums\n\n**Synopsis:** Usage: shasum [OPTION]... [FILE]...\nPrint or check SHA checksums.\nWith no FILE, or when FILE is -, read standard input.\n-a, --algorithm   1 (default), 224, 256, 384, 512, 512224, 512256\n-b, --binary      read in binary mode\n-c, --check       read SHA sums from the FILEs and check them\n--tag         create a BSD-style checksum\n-t, --text        read in text mode (default)\n-U, --UNIVERSAL   read in Universal Newlines mode\nproduces same digest on Windows/Unix/Mac\n-0, --01          read in BITS mode\nASCII '0' interpreted as 0-bit,\nASCII '1' interpreted as 1-bit,\nall other characters ignored\nThe following five options are useful only when verifying checksums:\n--ignore-missing  don't fail or report status for missing files\n-q, --quiet           don't print OK for each successfully verified file\n-s, --status          don't output anything, status code shows success\n--strict          exit non-zero for improperly formatted checksum lines\n-w, --warn            warn about improperly formatted checksum lines\n-h, --help        display this help and exit\n-v, --version     output version information and exit\nWhen verifying SHA-512/224 or SHA-512/256 checksums, indicate the\nalgorithm explicitly using the -a option, e.g.\nshasum -a 512224 -c checksumfile\nThe sums are computed as described in FIPS PUB 180-4.  When checking,\nthe input should be a former output of this program.  The default\nmode is to print a line with checksum, a character indicating type\n(`*' for binary, ` ' for text, `U' for UNIVERSAL, `^' for BITS),\nand name for each FILE.  The line starts with a `\\' character if the\nFILE name contains either newlines or backslashes, which are then\nreplaced by the two-character sequences `\\n' and `\\\\' respectively.\nReport shasum bugs to mshelor@cpan.org\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (41 lines)\n- **DESCRIPTION** (23 lines)\n- **AUTHOR** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nshasum - Print or Check SHA Checksums\n\n### SYNOPSIS\n\nUsage: shasum [OPTION]... [FILE]...\nPrint or check SHA checksums.\nWith no FILE, or when FILE is -, read standard input.\n\n-a, --algorithm   1 (default), 224, 256, 384, 512, 512224, 512256\n-b, --binary      read in binary mode\n-c, --check       read SHA sums from the FILEs and check them\n--tag         create a BSD-style checksum\n-t, --text        read in text mode (default)\n-U, --UNIVERSAL   read in Universal Newlines mode\nproduces same digest on Windows/Unix/Mac\n-0, --01          read in BITS mode\nASCII '0' interpreted as 0-bit,\nASCII '1' interpreted as 1-bit,\nall other characters ignored\n\nThe following five options are useful only when verifying checksums:\n--ignore-missing  don't fail or report status for missing files\n-q, --quiet           don't print OK for each successfully verified file\n-s, --status          don't output anything, status code shows success\n--strict          exit non-zero for improperly formatted checksum lines\n-w, --warn            warn about improperly formatted checksum lines\n\n-h, --help        display this help and exit\n-v, --version     output version information and exit\n\nWhen verifying SHA-512/224 or SHA-512/256 checksums, indicate the\nalgorithm explicitly using the -a option, e.g.\n\nshasum -a 512224 -c checksumfile\n\nThe sums are computed as described in FIPS PUB 180-4.  When checking,\nthe input should be a former output of this program.  The default\nmode is to print a line with checksum, a character indicating type\n(`*' for binary, ` ' for text, `U' for UNIVERSAL, `^' for BITS),\nand name for each FILE.  The line starts with a `\\' character if the\nFILE name contains either newlines or backslashes, which are then\nreplaced by the two-character sequences `\\n' and `\\\\' respectively.\n\nReport shasum bugs to mshelor@cpan.org\n\n### DESCRIPTION\n\nRunning shasum is often the quickest way to compute SHA message digests.  The user simply\nfeeds data to the script through files or standard input, and then collects the results from\nstandard output.\n\nThe following command shows how to compute digests for typical inputs such as the NIST test\nvector \"abc\":\n\nperl -e \"print qq(abc)\" | shasum\n\nOr, if you want to use SHA-256 instead of the default SHA-1, simply say:\n\nperl -e \"print qq(abc)\" | shasum -a 256\n\nSince shasum mimics the behavior of the combined GNU sha1sum, sha224sum, sha256sum,\nsha384sum, and sha512sum programs, you can install this script as a convenient drop-in\nreplacement.\n\nUnlike the GNU programs, shasum encompasses the full SHA standard by allowing partial-byte\ninputs.  This is accomplished through the BITS option (-0).  The following example computes\nthe SHA-224 digest of the 7-bit message 0001100:\n\nperl -e \"print qq(0001100)\" | shasum -0 -a 224\n\n### AUTHOR\n\nCopyright (C) 2003-2018 Mark Shelor <mshelor@cpan.org>.\n\n### SEE ALSO\n\nshasum is implemented using the Perl module Digest::SHA.\n\n\n\nperl v5.34.0                                 2025-07-25                                    SHASUM(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "shasum",
        "section": "1",
        "mode": "man",
        "summary": "shasum - Print or Check SHA Checksums",
        "synopsis": "Usage: shasum [OPTION]... [FILE]...\nPrint or check SHA checksums.\nWith no FILE, or when FILE is -, read standard input.\n-a, --algorithm   1 (default), 224, 256, 384, 512, 512224, 512256\n-b, --binary      read in binary mode\n-c, --check       read SHA sums from the FILEs and check them\n--tag         create a BSD-style checksum\n-t, --text        read in text mode (default)\n-U, --UNIVERSAL   read in Universal Newlines mode\nproduces same digest on Windows/Unix/Mac\n-0, --01          read in BITS mode\nASCII '0' interpreted as 0-bit,\nASCII '1' interpreted as 1-bit,\nall other characters ignored\nThe following five options are useful only when verifying checksums:\n--ignore-missing  don't fail or report status for missing files\n-q, --quiet           don't print OK for each successfully verified file\n-s, --status          don't output anything, status code shows success\n--strict          exit non-zero for improperly formatted checksum lines\n-w, --warn            warn about improperly formatted checksum lines\n-h, --help        display this help and exit\n-v, --version     output version information and exit\nWhen verifying SHA-512/224 or SHA-512/256 checksums, indicate the\nalgorithm explicitly using the -a option, e.g.\nshasum -a 512224 -c checksumfile\nThe sums are computed as described in FIPS PUB 180-4.  When checking,\nthe input should be a former output of this program.  The default\nmode is to print a line with checksum, a character indicating type\n(`*' for binary, ` ' for text, `U' for UNIVERSAL, `^' for BITS),\nand name for each FILE.  The line starts with a `\\' character if the\nFILE name contains either newlines or backslashes, which are then\nreplaced by the two-character sequences `\\n' and `\\\\' respectively.\nReport shasum bugs to mshelor@cpan.org",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 41,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}