Md5sum

Md5sum

md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321. The MD5 hash (or checksum) functions as a compact digital fingerprint of a file. It is extremely unlikely that any two non-identical files existing in the real world will have the same MD5 hash (although as with all such hashing algorithms, in theory there is an unlimited number of files that will have any given MD5 hash).

Because almost any change to a file will cause its MD5 hash to also change, the MD5 hash is commonly used to verify the integrity of files (i.e., to verify that a file has "not" changed as a result of file transfer, disk error, meddling, etc.). The md5sum program is installed by default in most Unix, Linux, and Unix-like operating systems or compatibility layers. BSD variants (including Mac OS X) have a similar utility called md5. Versions for Microsoft Windows do exist (see external links).

Note that a cryptanalytic attack on the MD5 algorithm has been found [http://www.infosec.sdu.edu.cn/paper/md5-attack.pdf (dead link, archived copy: [http://web.archive.org/web/20070629090049/http://www.infosec.sdu.edu.cn/paper/md5-attack.pdf] )] [ [http://www.win.tue.nl/hashclash/SoftIntCodeSign/ Software Integrity Checksum and Code Signing Vulnerability ] ] , which means a method has been found to calculate a file that will have a given md5sum in less than the time required for a brute force attack. Although it would still be quite computationally expensive to construct such a file, md5sum should not be used in situations where security is important (such as cryptographic hashing). It is still useful for general-purpose file integrity verification, such as protecting against random bit flips.

Checking for validity

To see if a given file is valid, pass the output of a previous md5sum run with the switch -c.Thus, the following two steps occur:
#Compute the MD5 sum and store it in a file using md5sum file > file.md5
#Check for validity with md5sum -c file.md5

If file is not present, omitting the file parameter or passing a - reads from standard input.

References

See also

*GNU Core Utilities
*cksum
*Cygwin
*GnuWin32
*sha1sum

External links

* [http://www.linuxmanpages.com/man1/md5sum.1.php The program's man page]
* [http://downloads.activestate.com/contrib/md5sum/Windows/ md5sum] - An implementation for Microsoft Windows
* [http://www.md5summer.org/ md5Summer] - A GUI md5sum utility for Microsoft Windows
* [http://www.kennethballard.com/modules/xproject/index.php?op=viewSummary&pid=2 digestIT 2004] - An MD5/SHA-1 utility integrated into Windows Explorer
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=B3C93558-31B7-47E2-A663-7365C1686C08&displaylang=en Microsoft File Checksum Integrity Verifier]
* [http://www.slavasoft.com/fsum/ SlavaSoft FSUM] - Fast File Integrity Checker
* [http://www.fileformat.info/tool/hash.htm FileFormat.Info] - Online Hash Function Generator
* [http://www.febooti.com/products/filetweak/members/hash-and-crc/ febooti fileTweak Hash & CRC] - is a Windows cryptographic hash value calculator that allows computing MD5 and other popular checksums.
* [http://jsummer.sourceforge.net/ JSummer] - a platform independent open source message digest tool for Unix/Linux and Windows with a GUI supporting MD5Sum and other algorithms.
* [http://www.fourmilab.ch/md5 MD5 Command Line Message Digest Utility] - A command line utility usable on either Unix or MS-DOS/Windows, which generates and verifies message digests (digital signatures) using the MD5 algorithm.
* [http://cfv.sourceforge.net/ cfv] - utility to test and create .sfv, .csv, .crc, .md5(sfv-like), md5sum, bsd md5, sha1sum, and .torrent files.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • md5sum — Тип программа для вычисления и верификации Хеш сумм по алгоритму MD5 Операционная система Linux, UNIX, Microsoft Windows, Mac OS X md5sum  программа, позволяющая вычислять значения хеш сумм (контрольных сумм) файлов по алгоритму MD5. В… …   Википедия

  • Md5sum — Тип программа для вычисления и верификации Хеш сумм по алгоритму MD5 ОС GNU/Linux, UNIX, Microsoft Windows, Mac OS X md5sum  программа, позволяющая вычислять значения хеш сумм (контрольных сумм) файлов по алгоритму MD5. В обычном случае… …   Википедия

  • Md5sum — Saltar a navegación, búsqueda md5sum es un programa originario de los sistemas Unix que tiene versiones para otras plataformas, realiza un hash MD5 de un archivo. La función de hash devuelve un valor que es prácticamente único para cada archivo,… …   Wikipedia Español

  • md5sum — es un programa originario de los sistemas Unix que tiene versiones para otras plataformas, realiza un hash MD5 de un archivo. La función de hash devuelve un valor que es prácticamente único para cada archivo, con la particularidad que una pequeña …   Wikipedia Español

  • md5sum — is a computer program that calculates and verifies 128 bit MD5 hashes, as described in RFC 1321. The MD5 hash (or checksum) functions as a compact digital fingerprint of a file. As with all such hashing algorithms, there is theoretically an… …   Wikipedia

  • Md5sum — MD5 (Message Digest Algorithm 5) ist eine weit verbreitete kryptographische Hashfunktion, die einen 128 Bit Hashwert erzeugt. MD5 wurde 1991 von Ronald L. Rivest entwickelt. Die errechneten MD5 Summen (kurz md5sum) werden zum Beispiel zur… …   Deutsch Wikipedia

  • Md5sum (программа) — …   Википедия

  • Imagen ISO — es un archivo donde se almacena una copia o imagen exacta de un sistema de ficheros, normalmente un disco óptico. Se rige por el estándar ISO 9660 que le da nombre. Algunos de los usos más comunes incluyen la distribución de sistemas operativos,… …   Wikipedia Español

  • MD5 — General Designers Ronald Rivest First published April 1992 Series MD2, MD4, MD5, MD6 Detail Digest sizes 128 bits …   Wikipedia

  • Comparison of file verification software — The following tables compare file verification software that typically use checksums to confirm the integrity or authenticity of a file. Contents 1 General 2 Program hash function support 3 Program features 4 …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”