md5sum, sha1sum, sha256sum and crc32sum for Windows ====================================================================== This set of free Windows command-line utilities is based on the original `md5sum` program written by Branko Lancaster in 1993. They generate or check the hash digest of a file or list of files using MD5, SHA-1, SHA-256 or CRC32. OK, so CRC32 is not a hash digest algorithm--it's only a checksum--but you get the idea. They all work identically. Note that the default behaviour is binary mode. For help use the -h option. Examples:- >sha1sum *.txt f7c3bc1d808e04732adf679965ccc34ca7ae3441 *123-9.txt a9993e364706816aba3e25717850c26c9cd0d89d *abc.txt 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed *hello.txt 88a5b867c3d110207786e66523cd1e4a484da697 *hellon.txt >sha1sum -t *.txt f7c3bc1d808e04732adf679965ccc34ca7ae3441 123-9.txt a9993e364706816aba3e25717850c26c9cd0d89d abc.txt 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed hello.txt 22596363b3de40b06f981fb85d82312e8c0ed511 hellon.txt >sha1sum *.txt > output.sha >type output.sha f7c3bc1d808e04732adf679965ccc34ca7ae3441 *123-9.txt a9993e364706816aba3e25717850c26c9cd0d89d *abc.txt 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed *hello.txt 88a5b867c3d110207786e66523cd1e4a484da697 *hellon.txt >sha1sum -c output.sha >sha1sum -v -c output.sha 123-9.txt OK abc.txt OK hello.txt OK hellon.txt OK >sha1sum -h Usage: sha1sum [-b|-t] [FILES...] sha1sum [-v] -c [FILE] sha1sum [-hVL] Generates or checks SHA-1 Message Digests -c check message digests (default is generate) -v verbose, print file names when checking -b read files in binary mode (default) -t read files in text mode -h display this help and exit -V display version information and exit -L display license and exit 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. >md5sum *.txt 25f9e794323b453885f5181f1b624d0b *123-9.txt 900150983cd24fb0d6963f7d28e17f72 *abc.txt 5eb63bbbe01eeed093cb22bb8f5acdc3 *hello.txt a0f2a3c1dcd5b1cac71bf0c03f2ff1bd *hellon.txt >crc32sum *.txt cbf43926 *123-9.txt 352441c2 *abc.txt 0d4a1185 *hello.txt 38e6c41a *hellon.txt >sha256sum *.txt 15e2b0d3c33891ebb0f1ef609ec419420c20e320ce94c65fbc8c3312448eb225 *123-9.txt ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad *abc.txt b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 *hello.txt 572a95fee9c0f320030789e4883707affe12482fbb1ea04b3ea8267c87a890fb *hellon.txt Licensed under the [BSD-2-Clause License](https://opensource.org/license/BSD-2-Clause) For more information, see our web site David Ireland DI Management Services Pty Ltd Australia First published 2004-07-24. This version 2025-11-02.