Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Digest::MD5::md5_hex giving different values on different machines

by ctilmes (Priest)
on Jun 21, 2007 at 11:31 UTC ( #622539=note: print w/ replies, xml ) Need Help??


in reply to Re: Digest::MD5::md5_hex giving different values on different machines
in thread Digest::MD5::md5_hex giving different values on different machines

Differing files may give the same md5.

For any hash function, there will be collisions, infinite collisions in fact. (Informal proof: Once you've hashed as many distinct files as you have total hash values, if you hash yet another distinct file, you must have a collision somewhere.)

The key here is a Cryptographic Hash Function.

Are you trying to detect accidental differences or malicious ones?

MD5 is very good at detecting the former with high confidence. Given the published research, it isn't as good for the later.


Comment on Re^2: Digest::MD5::md5_hex giving different values on different machines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://622539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-07-29 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls