@database md5sum.guide @Master md5sum.texinfo @Width 72 This is the AmigaGuideŽ file md5sum.guide, produced by Makeinfo-1.55 from the input file md5sum.texinfo. @Node Main "md5sum.guide" @Next "Legal" MD5SUM - amiga port by Peter Simons Manual edition 1 (18 September 1993) @{" Legal Stuff " Link "Legal"} copyright and disclaimer @{" What is MD5SUM? " Link "Description"} a brief description @{" Commandline Usage " Link "Usage"} How to invoke MD5SUM @{" Security " Link "Security"} a word about security @EndNode @Node "Legal" "md5sum.guide/Legal" @Next "Description" @Prev "Main" @Toc "Main" Disclaimer ========== MD5SUM has been written by Branko Lankester and Colin Plumb and has been modified by me to compile with SAS/C on the Amiga. The complete source and an smakefile are included in the distribution. This utility is public domain. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @EndNode @Node "Description" "md5sum.guide/Description" @Next "Usage" @Prev "Legal" @Toc "Main" What is MD5SUM? =============== MD5SUM is a small utility that allows you to build checksums over text- or binary files, using the "MD5 Message Digest Algorithm". (1) These checksums can be stored in a file and can be validated later, using MD5SUM. For example, the checksums of the MD5SUM sources look like this: 107788ec46ef6ab9dbb190215f5b6f1a source/getopt.c ca1ada43f73cff4466adde1e88a8cf60 source/md5.c 4a6dafa2f6282430e65d4728a1303a53 source/md5sum.c So, what is this useful for? Say, you're releasing a software package including sources to the public and want to make shure, nobody modifies the program (for example: add backdoors) and redistributes the modified version. (2) You could include the digest-file with a checksum of every single file in release archive and everybody could easily check the validity of the files. ---------- Footnotes ---------- (1) Placed in the public domain by RSA Data Security, Inc. (2) Do not laugh, this already happened with BBS packages or common utilities. Once, even a virus was added to a utility! @EndNode @Node "Usage" "md5sum.guide/Usage" @Next "Security" @Prev "Description" @Toc "Main" How to invoke MD5SUM ==================== If you need a short overview of the options MD5SUM provides, just call @{b}"MD5SUM -h"@{ub} to get this help output: usage: md5sum [-bv] [-c [file]] | [file...] Generates or checks MD5 Message Digests -c check message digests (default is generate) -v verbose, print file names when checking -b read files in binary mode The input for -c should be the list of message digests and file names that is printed on stdout by this program when it generates digests. If you want to generate checksums, just call MD5SUM with the paths of the files you want to include in the digest file. (1) The output is printed to standard output and may be redirected using the @{b}>@{ub} sign. For example: MD5SUM >ram:test.md5 file1 file2 path1/file3 path2/file4 MD5SUM defaults to text mode and does not care about the end-of-line code, which may vary between platforms (like Amiga <-> MS-DOS). If you want to generate exact checksums for binaries, you'll have to set the @{b}-b@{ub} flag. Files with a binary checksum are prefaced with a @{b}*@{ub} in the digestfile: ca1ada43f73cff4466adde1e88a8cf60 source/md5.c 34d0ee57bd7fa4ab699c1c3c0a522eb7 *md5sum 4a6dafa2f6282430e65d4728a1303a53 source/md5sum.c Checking the validity of the files is quite easy, too. Just call MD5SUM with the @{b}-c@{ub} option and the name of the digest file. (2) Say, we'd have saved the above example under @{b}test.md5@{ub}, the correct commandline would be: MD5SUM -c test.md5 If no filename is specified, MD5SUM tries to read the digest file from standard input MD5SUM -c