MD 5
MD 5
A Hash Algorithm…
MD5
Why HASH?
Fingerprint of message does not tell
anything about the message.
This is because there are infinite other
possible equations which can produce
same result.
Principle Of MD
Easy to Compute
Same message same MD
Difficult to reverse
Different message different MD
Collision
Birthday Paradox for collision detection
History
Series of MD algorithm.
Original message digest algorithm called as MD.
MD2 (1989) for 8 bit PC, rounds18 found to be
quite weak.
MD3 was failure never released.
MD4 (1990) digest length128 bits rounds 3, found
to wantig.
MD5 (1992) we will discuss it in details.
MD6 (2008) variable digest size up to 512 bits &
rounds.
How MD5 Works?
Digest Length=128 bit
I/P Text=512 bit
Sub Block size-32bit
512/32=16 total Sub blocks
No. Of Rounds=4
Iteration per round=16
Chaining Variable = 4*32=128
K[t] constant = Where t=0 to 63
O/P-> four 32 bit blocks
Steps
1. Padding
2. Append length
3. Divide the I/P in 512 bit blocks
4. Initialize chaining variables
5. Process blocks
a) Copying chaining variables into temporary
var.
b) Sub blocks within a block
c) i/p to round temp var,16 bit sub
block ,constant [t]
Step 4.Initialize chaining variables