P
P
PO6OT2015-05-11 12:32:02
Hashing
PO6OT, 2015-05-11 12:32:02

Is it possible to avoid the problem of creating two messages with the same hash sum by adding the size of the hashed string/file to the md5 hash sum?

Is it possible to avoid the problem of creating two messages with the same hash sum by adding the size of the hashed string/file to the md5 hash sum?
For example, can there be two different files/strings that have the same MD5 hash sum and size?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marble, 2015-05-11
@woonem

For example, can there be two different files/strings that have the same MD5 hash sum and size?
They can. This is called a collision , about the file size relative to the hash sum, a collision can also be, but with a much lower chance, of course.

O
Optimus, 2015-05-11
Pyan @marrk2

If the messages are the same, then the line length and file size will also be the same? Does that mean the hash matches?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question