Xxhash Vs | Md5

The statistical quality of xxHash is excellent. The only thing missing is the cryptographic "one-way" property (pre-image resistance).

xxHash is roughly 20x to 30x faster than MD5. If you are hashing a 10GB file, MD5 will take ~30 seconds; xxHash will take ~1 second. xxhash vs md5

Collisions can be crafted in seconds on a laptop (e.g., two different executable files with same MD5 hash, first demonstrated by Wang et al. in 2004, refined to practical attacks since). An attacker can produce two SSL certificates with different identities but identical MD5 hash — leading to catastrophic trust violations. The statistical quality of xxHash is excellent

Choosing between xxHash and MD5 is about threat modeling. Ask yourself: Is there an intelligent adversary who benefits from breaking my hash? MD5 will take ~30 seconds