Re: MD5 and SHA-1 Digest: What is the probability of repeating hash-values?
From: Jim Gillogly (jim_at_acm.org)
Date: 10/24/03
- Next message: Gregory G Rose: "Re: generators be bound"
- Previous message: Gregory G Rose: "Re: Is it OK with newbie questions in this NG?"
- In reply to: Anton Spaans: "MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Next in thread: Jeff: "Re: MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Reply: Jeff: "Re: MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 24 Oct 2003 18:51:37 GMT
Anton Spaans wrote:
> MD5 digests create 128-bit hash-values. The maximum number of hash-values is
> therefore no more than 2^128.
> I have this question:
>
> What is a (approximate) chance that two different original messages have the
> same MD5 (or SHA) digest hash-value?
Given the first paragraph as your background, I assume you're asking
whether there are two possible messages that can hash to the same value.
That's a "yes", i.e. probability 1.0: since there are more than 2^128
(resp. 2^160) possible messages, there must be collisions. We haven't
seen any yet for MD5 or SHA1, so far as I know.
If you'd prefer to ask how likely it is that someone can construct a
message that will match one that you just wrote, so far as I know
there's no improvement on a 1/2^128 (resp. 1/2^160) chance for each try.
There's been some work on using the birthday paradox to get the
probability higher in the case where you're trying to construct
two plausible messages at the same time that have the same hash.
(The application is that you get somebody to sign a hash of a
promissory note for one amount while you have another message in
your pocket that you will produce in court.)
-- Jim Gillogly
- Next message: Gregory G Rose: "Re: generators be bound"
- Previous message: Gregory G Rose: "Re: Is it OK with newbie questions in this NG?"
- In reply to: Anton Spaans: "MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Next in thread: Jeff: "Re: MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Reply: Jeff: "Re: MD5 and SHA-1 Digest: What is the probability of repeating hash-values?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|