Create your own MD5 collisions

后端 未结 5 1966
庸人自扰
庸人自扰 2020-12-22 20:07

I\'m doing a presentation on MD5 collisions and I\'d like to give people any idea how likely a collision is.

It would be good to have two blocks of text which hash t

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 20:41

    It's hard to do it with just text files, AFAIK. You can get some collisions, but having them also be from just [a-zA-Z] is not easy (yet).

    On the other hand, if you just want two "meaningful"-looking files with the same hash, you can do it with something like, say, PostScript: have different binary blobs causing the collision, and use a conditional expression to display different output accordingly.

    See e.g. this problem (the H2 part) and solution. For example, this PS file and this one have the same MD5sum but they are both well-formed PostScript files that have entirely different text in them when you open them.

提交回复
热议问题