1SHA3SUM(1) User Contributed Perl Documentation SHA3SUM(1)
2
3
4
6 sha3sum - Print or Check SHA-3 Checksums
7
9 Usage: sha3sum [OPTION]... [FILE]...
10 Print or check SHA-3 checksums.
11 With no FILE, or when FILE is -, read standard input.
12
13 -a, --algorithm 224 (default), 256, 384, 512, 128000, 256000
14 -b, --binary read in binary mode
15 -c, --check read SHA-3 sums from the FILEs and check them
16 --tag create a BSD-style checksum
17 -t, --text read in text mode (default)
18 -U, --UNIVERSAL read in Universal Newlines mode
19 produces same digest on Windows/Unix/Mac
20 -0, --01 read in BITS mode
21 ASCII '0' interpreted as 0-bit,
22 ASCII '1' interpreted as 1-bit,
23 all other characters ignored
24
25 The following five options are useful only when verifying checksums:
26 --ignore-missing don't fail or report status for missing files
27 -q, --quiet don't print OK for each successfully verified file
28 -s, --status don't output anything, status code shows success
29 --strict exit non-zero for improperly formatted checksum lines
30 -w, --warn warn about improperly formatted checksum lines
31
32 -h, --help display this help and exit
33 -v, --version output version information and exit
34
35 The sums are computed as described in the FIPS 202 SHA-3 submission.
36 When checking, the input should be a former output of this program.
37 The default mode is to print a line with checksum, a character
38 indicating type (`*' for binary, ` ' for text, `U' for UNIVERSAL,
39 `^' for BITS), and name for each FILE. The line starts with a `\'
40 character if the FILE name contains either newlines or backslashes,
41 which are then replaced by the two-character sequences `\n' and
42 `\\' respectively.
43
44 Report sha3sum bugs to mshelor@cpan.org
45
47 Running sha3sum is often the quickest way to compute SHA-3 message
48 digests. The user simply feeds data to the script through files or
49 standard input, and then collects the results from standard output.
50
51 The following command shows how to compute digests for typical inputs
52 such as the NIST test vector "abc":
53
54 perl -e "print qq(abc)" | sha3sum
55
56 Or, if you want to use SHA3-256 instead of the default SHA3-224, simply
57 say:
58
59 perl -e "print qq(abc)" | sha3sum -a 256
60
61 Unlike many other digest computation programs, sha3sum implements the
62 full SHA-3 standard by allowing partial-byte inputs, which can be
63 recognized through the BITS option (-0). The following example
64 computes the SHA3-384 digest of the 7-bit message 0001100:
65
66 perl -e "print qq(0001100)" | sha3sum -0 -a 384
67
69 Copyright (C) 2012-2018 Mark Shelor <mshelor@cpan.org>.
70
72 sha3sum is implemented using the Perl module Digest::SHA3.
73
74
75
76perl v5.30.0 2019-07-26 SHA3SUM(1)