Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Time complexity of a brute-force embedded MD5sum

A question I've been meaning to have answered for a long time - What would be the time complexity of finding an MD5sum of a compiled binary that contains that same MD5 statically embedded in it, say, as a string?

Edit: If this wasn't already clear. I am looking for an answer with the time complexity and an explanation of it.

like image 433
atx Avatar asked Nov 14 '22 01:11

atx


1 Answers

This can be solved in constant time.

The file that contains all possible MD5 digests contains the digest of that file.

like image 75
Jeremy Powell Avatar answered Dec 15 '22 09:12

Jeremy Powell