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. As with all such hashing algorithms, there is theoretically an unlimited number of files that will have any given MD5 hash. However, it is unlikely that any two non-identical files will have the same MD5 hash.

Virtually any change to a file will cause its MD5 hash to change; therefore md5sum is used to verify the integrity of files. Most commonly, md5sum is used to verify that a file has not changed as a result of file transfer, disk error or meddling. The md5sum program is installed by default in most Unix, Linux, and Unix-like operating systems or compatibility layers. Other operating systems, including Microsoft Windows and BSD variants — such as Mac OS X - have similar utilities (see external links).

Examples

  • Compute the MD5 sum of two files and store it in a third one:
md5sum file1 file2 > files.md5
  • This file will have one line per input file. Each line will contain an MD5 sum (32 hexadecimal digits), two spaces and the corresponding input file name. It will look like:
47f4cc0b788002e8b264881beb4ec08b  file1
beaa28899c52f9df66094c4267876e78  file2
  • Check for validity with:
md5sum -c files.md5
  • Expected results:
file1: OK
file2: OK

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

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

  • 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… …   Wikipedia

  • 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 — 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”