CPE 645 / CS 685
Applied Cryptography
Calculators

MD5, Step by Step

Pad a message, and read its sixteen words in the four orders MD5 uses. Step through one of the 64 steps. Then see two different messages that have the same digest.

MD5demo
Objectives
  • Describe MD5 padding, including why the length is part of the input and why it is written low byte first.

  • Explain that MD5's schedule reorders sixteen words rather than expanding them, and name the four steps that read a given word.

  • Trace one MD5 step: which word it reads, which function it applies, and which of the four working words it computes.

  • Read the Wang and Yu collision as data: six differing bits, equal chaining states after the second block, equal digests.

  • State why a common suffix preserves that collision, and why a collision is still not a preimage.


Static site. Every demo computes in your browser, and nothing you type is sent anywhere.