Checksum family

MurmurHash3

Austin Appleby's widely used multiply-rotate hash for hash tables

unverified 1 variant SMHasher project

Overview

MurmurHash3 is a non-cryptographic hash function by Austin Appleby, released in 2011 as part of the SMHasher project. It has been used in many hash-table, Bloom-filter and partitioning implementations, including Apache Cassandra and Hadoop. It provides no security against a deliberate attacker.

MurmurHash3 processes input in 32-bit (or 128-bit) blocks. Each block is multiplied by a constant, rotated, multiplied again and mixed into the hash state with XOR, rotation and a multiply-add step. A final fmix function avalanches the result so every input bit affects every output bit. The name comes from the multiply and rotate operations it repeats.

NextSSL includes the x86_32 variant, producing a 32-bit hash with a 32-bit seed. Other variants, including x86_128 and x64_128, produce different outputs and are not included here. MurmurHash2 and MurmurHash3 values are not interchangeable either. None of this provides security: the function has no secret key, and anyone can compute or deliberately collide its outputs.

History

2011–2011
  1. MurmurHash3 published by Austin Appleby

Security notes

MurmurHash3 is not cryptographic. Seed-independent collisions are known, so hash-flooding attacks against hash tables keyed with it succeed regardless of the seed. Use SipHash where inputs may be adversarial.

Typical uses

Hash tables and Bloom filtersData partitioning and sharding

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
Murmurhash3
murmurhash3
unverified out 4 MurmurHash3 x86_32 (Austin Appleby), NON-cryptographic root

Frequently asked questions

Which MurmurHash3 variants does NextSSL include?

NextSSL registers 1 MurmurHash3 variant: murmurhash3.

Families with similar names