What is a message digest?
Message digest, also known as the hash of a message, is a small piece of data that results from performing a particular mathematical calculation (hashing function) on the message during encryption. Two properties of message digests to note: (i) a small alteration in the original message would cause a big change in the message digest; (ii) derivation of the original message is not possible from the message digest. It acts as a “fingerprint” of the message and is used to ensure data integrity.