Can two different strings generate the same MD5 hash code?

前端 未结 11 1268
借酒劲吻你
借酒劲吻你 2020-11-28 03:16

For each of our binary assets we generate a MD5 hash. This is used to check whether a certain binary asset is already in our application. But is it possible that two differe

11条回答
  •  -上瘾入骨i
    2020-11-28 03:47

    Yes, it is! Collision will be a possibility (although, the risk is very small). If not, you would have a pretty effective compression method!

    EDIT: As Konrad Rudolph says: A potentially unlimited set of input converted to a finite set of output (32 hex chars) will results in an endless number of collisions.

提交回复
热议问题