Skip to the content.

Collision Calculator

A simple tool for calculations related to collisions among a set of uniformly random sequences of fixed length (“words”). Calculate any one of the following given the others:

The probability calculation only needs the number of possible words and the number of words in the set, but no one wants to calculate 2128 for the number of possible words (in this case, the number of possible 128-bit sequences).

This is the same problem as the birthday paradox, where the alphabet has 365 characters and words have length 1.

The tool needs a simple UI that allows the user to set one of the 4 values as output, with the others editable. For example:

This should be doable in javascript, which would allow the tool to be hosted on GitHub Pages.