in reply to Re: How safe is truncating an MD5 digest string?
in thread How safe is truncating an MD5 digest string?
The reason hash functions produce such long outputs is to resist birthday attacks. That's where someone finds two hash inputs that result in the same output. It sounds like your system won't be vulnerable to a birthday attack, though, since the users don't pick the input to the hash function - you pick it for them. I have to echo everyone else and say, "it's probably ok to shorten MD5."
BTW, the name "birthday attack" comes from the observation that, if you walk into a room containing 20 people, it's unlikely that one of them will have the same birthday as you. However, it's fairly likely that two of them will have the same birthday as each other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How safe is truncating an MD5 digest string?
by John M. Dlugosz (Monsignor) on Sep 12, 2001 at 01:02 UTC | |
by no_slogan (Deacon) on Sep 13, 2001 at 01:42 UTC | |
by John M. Dlugosz (Monsignor) on Sep 13, 2001 at 09:43 UTC |