Message Digest 2 (MD2)

Definition - What does Message Digest 2 (MD2) mean?

Message Digest 2 is a hash function used in cryptography. Developed in 1989 by Ronald Rivest, it is byte-oriented, producing a 128-bit hash value with the help of an arbitrary length message. It is optimized for 8-bit computers. Message Digest 2 was developed mainly to be used for digital signature applications, which required a secured and compressed large file to be signed with a private key. Although it remains in use in public key infrastructures, it is rarely used as it takes a long time to compute and is no longer considered secure.

Techopedia explains Message Digest 2 (MD2)

Message Digest 2 depends on the random permutation of bytes. Thirty-two-digit hexadecimal numbers are used for representing the 128-bit Message Digest 2 hashes. The Message Digest 2 algorithm makes use of a message of any length and produces an output of a 128-bit message digest of the input. It is assumed that it is impossible to produce two messages with same message digest or to obtain a prespecified target message digest from a given message. The process of the Message Digest 2 algorithm involves the following steps: appending padding bytes, appending checksum, initializing the message digest buffer for computing the message digest, processing the message in 16-byte blocks and finally producing the output.

One of the biggest benefits of Message Digest 2 is its simplicity in implementation. However, Message Digest 2 is slower when compared to Message Digest 4 or 5. This is because it was optimized for 8-bit computers, whereas Message Digest 4 and 5 were optimized for 32-bit machines. Again, comparing secure hash algorithms such as SHA-1 or SHA-256, Message Digest 2 algorithms are slower in performance. However, it was discovered that message digest 2 could leak information of the keys with collision attacks, which is why it is no longer favored.

Share this:

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.