Hash Lab

Non-cryptographic

MurmurHash3

A family of fast non-cryptographic hash functions designed by Austin Appleby in 2008–2011. MurmurHash3 was the workhorse of mid-2010s big-data systems (Cassandra, Elasticsearch, Hadoop, Redis bitmap hashes); xxHash3 has largely supplanted it for raw throughput, but Murmur lives on for compatibility and clarity.

Variants

At a glance

Output32 or 128 bits
Throughput~3-7 GiB/s on modern CPUs
ConstructionBlock-by-block multiply / rotate / XOR mixer
Year2011 (Murmur3 final)
StatusNon-cryptographic; vulnerable to hash flooding without seed

Where it is used

Hash flooding caveat

MurmurHash3 is reversible by an attacker who can submit chosen inputs with no seed protection. Servers that used Murmur in their HTTP-header hash tables suffered “hash-collision DoS” attacks throughout 2012–2013. The fix is to seed the hash randomly (as HashMap on the JVM does since Java 8) or switch to a hash with a security goal , see SipHash.

Try it

MurmurHash3 is not exposed in the in-browser hasher (hash-wasm focuses on cryptographic + checksum algorithms). The glossary covers the non-crypto distinction and the universal-hashing landscape.

References

Quick quiz

Test yourself on murmurhash3

10 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.Who designed MurmurHash3?

  2. Q2.Which is NOT a MurmurHash3 variant?

  3. Q3.MurmurHash3 is:

  4. Q4.Which big-data system uses MurmurHash3 for partitioning?

  5. Q5.What attack motivated replacing Murmur in hash tables?

  6. Q6.Which Murmur generation was the first widely-deployed family?

  7. Q7.Where is MurmurHash3 still common today?

  8. Q8.What's MurmurHash3's typical throughput on modern CPUs?

  9. Q9.What test suite is used to benchmark MurmurHash3 against other non-crypto hashes?

  10. Q10.Can you use MurmurHash3 for content addressing in an adversarial setting?

0 of 10 answered