@command{md5sum} computes a 128-bit checksum (or @dfn{fingerprint} or
@dfn{message-digest}) for each specified @var{file}.
+@macro legacyDigest
+This is a legacy interface to the more modern @command{cksum} utility.
+@xref{cksum invocation}.
+@end macro
+@legacyDigest
+
@macro weakHash{hash}
The \hash\ digest is more reliable than a simple CRC (provided by
the @command{cksum} command) for detecting accidental file corruption,
appear valid when signed with an \hash\ digest. For more secure hashes,
consider using @samp{sha2}, @samp{sha3}, or @samp{blake2b},
available through the @command{cksum} @option{--algorithm} option.
-@xref{cksum invocation}.
@end macro
@weakHash{MD5}
@command{b2sum} computes a 512-bit checksum for each specified
@var{file}.
+@legacyDigest
+
@checksumUsage{b2sum}
In addition @command{b2sum} supports the following options.
@command{sha1sum} computes a 160-bit checksum for each specified @var{file}.
+@legacyDigest
+
@weakHash{SHA-1}
@checksumUsage{sha1sum}
@node sha2 utilities
@section sha2 utilities: Print or check SHA-2 digests
+@legacyDigest
+
@pindex sha224sum
@pindex sha256sum
@pindex sha384sum
.\" Add any additional description here
[BUGS]
Do not use the MD5 algorithm for security related purposes.
-Instead, use an SHA\-2 algorithm, implemented in the programs
-sha224sum(1), sha256sum(1), sha384sum(1), sha512sum(1),
-or the BLAKE2 algorithm, implemented in b2sum(1)
+Instead, use an SHA\-2, SHA\-3, or BLAKE2 algorithm,
+implemented in the cksum(1) program.
[SEE ALSO]
cksum(1)
[DESCRIPTION]
.\" Add any additional description here
[BUGS]
-Do not use the SHA-1 algorithm for security related purposes.
-Instead, use an SHA\-2 algorithm, implemented in the programs
-sha224sum(1), sha256sum(1), sha384sum(1), sha512sum(1),
-or the BLAKE2 algorithm, implemented in b2sum(1)
+Do not use the MD5 algorithm for security related purposes.
+Instead, use an SHA\-2, SHA\-3, or BLAKE2 algorithm,
+implemented in the cksum(1) program.
[SEE ALSO]
cksum(1)
"), program_name);
#if HASH_ALGO_CKSUM
if (legacy_mode)
- printf (_("\
+ {
+ printf (_("\
Print or check %s checksums.\n\
"), DIGEST_TYPE_STRING);
+ fputs (_("\
+Legacy interface to the cksum utility.\n\
+"), stdout);
+ }
else
fputs (_("\
Print or verify checksums.\n\
"),
DIGEST_TYPE_STRING,
DIGEST_BITS);
+ fputs (_("\
+Legacy interface to the cksum utility.\n\
+"), stdout);
#endif
emit_stdin_note ();