Cryptography - Message Digest (checksum|hash) (sha1|md5)


A message digest is the output of hash function (also known as a checksum). The input is known as the message (ie a piece of data: file, payload).

It is used to verify that the data has not been altered in transit. The output of the hash function changes when the input has changed.

They can maps big files to short sequences of characters.

It transforms a binary message (e.g. a software patch or any other file is stored as binary) of any length to a shorter, fixed-length value.


A message digest is used to verify data integrity by running a hash operation on the binary message after it is received. The computed message digest is compared to the value that has already been posted. If the two values match, this indicates that the data has not been altered.


The MD5 and SHA-1 message digest functions are two of the more well-known and commonly used algorithms.


For instance, on the fetch HTML element, you can find the digest in the integrity attribute

Documentation / Reference

Powered by ComboStrap