md5sum
From Wikipedia, the free encyclopedia
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[1] [2], 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.
[edit] References
- ^ http://www.infosec.sdu.edu.cn/paper/md5-attack.pdf (dead link, archived copy: [1])
- ^ Software Integrity Checksum and Code Signing Vulnerability
[edit] See also
- GNU Core Utilities - provides md5sum for GNU/Linux
- cksum
- Cygwin — provides md5sum and many other GNU Utilities to Microsoft Windows
- GnuWin32 — provides md5sum and many other GNU Utilities to Microsoft Windows
- sha1sum
[edit] External links
- The program's main page
- md5sum - An implementation for Microsoft Windows
- md5Summer - A GUI md5sum utility for Microsoft Windows
- digestIT 2004 - An MD5/SHA-1 utility integrated into Windows Explorer
- Microsoft File Checksum Integrity Verifier
- SlavaSoft FSUM - Fast File Integrity Checker
- FileFormat.Info - Online Hash Function Generator
- JSummer - a platform independent open source message digest tool for Unix/Linux and Windows with a GUI supporting MD5Sum and other algorithms.