Answer the question
In order to leave comments, you need to log in
How is it possible to hash any file if the number of combinations of the hash sum itself is limited?
It is clear that the number of hash sum combinations for each algorithm is huge, but there are even more files (or even simple strings).
Answer the question
In order to leave comments, you need to log in
the number of hash sum combinations for each algorithm is huge, but there are even more files (or even simple strings)
In practice, on live data and playful users, collisions in hash functions are much more common than theoretically expected. Therefore, on a live project, it is important to remember that if the hash of the function matches, it does not mean "the source lines match", but " probably the source lines match"
In addition to @jcmvbkbc
's perfectly correct answer :
By the birthday paradox, the first collision is most likely to occur when sqrt(2^N) has been created, i.e. 2^(N/2) documents. So, in order to create such a mass of files for MD5, the entire population of the globe must create one document every second for 100 years.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question