The most efficient MD5 checksum substring

If I need a shorter MD5 checksum, should I take the regular one and use the first half or the second half? Or does it even matter?

(obviously, it will cease to be MD5, it will be just a checksum)

+3
source share
3 answers

It doesn’t matter, but I would really think about it: you will significantly increase the probability of a collision (two different bits of data with the same checksum).

+2
source

It does not matter. Generally speaking, the entire checksum is changed for each input byte. But if you can’t decide why not xor the first half with the second ?:-)

+2
source

CNC, . , , , MD5.

+2

Source: https://habr.com/ru/post/1790539/


All Articles