News for hackers. Stuff that matters.
Re:The birthday paradox in action: calculating the probabili... by Dylan16807 on Wednesday November 07, 2012 @12:42PM (#4754299)
Pleasant tickle? Isn't it just 1/max(SHA-1)?

I do get a pleasant tickle from expanding that to the question of if there is any fixed point in SHA-1, but the chance for a particular value is the answer you always get for "what is the chance of a specific hash".

Re:The birthday paradox in action: calculating the probabili... by cmurphycode on Wednesday November 07, 2012 @01:20PM (#4754482)
Yeah, that was a phrasing mistake in my original post. I meant if there are ANY hashes that hash to itself (any fixed point). Thanks for noticing.
Re:The birthday paradox in action: calculating the probabili... by Someone on Wednesday November 07, 2012 @01:03PM (#4754407)
Nitpick: proofing that (as opposed to showing it to be likely by hashing a few zillion candidate keys and computing stats on their hashes) may be a bit of a challenge.

I am making this remark because the question reminded me of the question "If it is the 13th of the month, what is the probability that it is Friday?" (no tricks with weird calendars; you should just use the Gregorian one).

Re:The birthday paradox in action: calculating the probabili... by jlgreco on Wednesday November 07, 2012 @01:05PM (#4754413)
If there are max(SHA-1) hashes, and a 1/max(SHA-1) chance any particular one will hash to itself, does that mean we would expect only a single instance of a hash hashing to itself?

I have no idea how you might go about finding that one expected instance.

Re:The birthday paradox in action: calculating the probabili... by Dylan16807 on Wednesday November 07, 2012 @01:26PM (#4754504)
You would expect about 1 per unflawed hash function tested. But the law of averages is less powerful when you focus on a specific hash. The chance of having no fixed points in a particular unflawed hash is 1/e, so there is probably a fixed point, and possibly more than one.
Re:The birthday paradox in action: calculating the probabili... by JadeNB on Wednesday November 07, 2012 @02:27PM (#4754764)
> Pleasant tickle? Isn't it just 1/max(SHA-1)?

Only if there is a unique fixed point ….

Re:The birthday paradox in action: calculating the probabili... by Dylan16807 on Wednesday November 07, 2012 @10:56PM (#4756446)
Not really. If we're talking about abstract probability over hash functions it's the same no matter how many fixed points SHA1 happens to have. If we talk about concrete numbers then it's actually 1 or 0 for each hash.