Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I am learning Hash Algorithms and in a presentation (PDF) about these algorithms I read that:

Length of $h(m)$ much shorter then length of $m$.

Now my question is:
What if we talk about an empty string, is it true that hash length is shorter than the length of message?

I searched the internet and found that:

The MD5 Hash of an empty string is:d41d8cd98f00b204e9800998ecf8427e

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The presentation probably went along with a more verbose lecture.

I would assume there was some discussion about message lengths there, since that statement is obviously incorrect. In most applications, the "message" length is longer than the digest, and the average message length is also most likely longer. Think file verification, or processing of an actually message, instead of of a password.

In that statement, substitute "much shorter" to "usually much shorter"

share|improve this answer
    
Thanks for your fast answer, it helped me a lot :) –  Ultimo_m Jun 26 at 19:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.