Quant Memo
Probability/●●●●●

The birthday attack on an N-bit hash

A hash function outputs an NN-bit digest, so there are d=2Nd = 2^N equally likely outputs. You feed it random inputs and watch for two that collide.

Roughly how many inputs before a collision is more likely than not? What does this say about the security of a 128-bit hash?

Show a hint

This is the birthday problem with d=2Nd = 2^N days. Recall the general threshold n1.18dn \approx 1.18\sqrt{d}.

Your answer

This one is open-ended. Work it through, then check your reasoning against the full solution.

More Probability questions