Can two different strings generate the same MD5 hash code?

前端 未结 11 1287
借酒劲吻你
借酒劲吻你 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条回答
  •  野性不改
    2020-11-28 03:51

    Just to be more informative. From a math point of view, Hash functions are not injective.
    It means that there is not a 1 to 1 (but one way) relationship between the starting set and the resulting one.

    Bijection on wikipedia

    EDIT: to be complete injective hash functions exist: it's called Perfect hashing.

提交回复
热议问题