A primary requirement for a good cryptographic hash function is that the function should not produce too many collisions. A collision in a hash function is when:

A: There are few inputs, but a lot of outputs.

B: 2 inputs map to the same output.

C: 2 outputs come from the same input.

D: There are few outputs, but a lot of inputs.

1 answer

The correct answer is:

B: 2 inputs map to the same output.

A collision in a hash function occurs when two different inputs produce the same hash output. A good cryptographic hash function should minimize the chances of such collisions occurring.