Murmurhash3
Austin Appleby's widely used multiply-rotate hash for hash tables
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Murmurhash3
Murmurhash3 is a checksum / non-cryptographic hash. It produces a 4-byte (32-bit) output. Its registry entry cites MurmurHash3 x86_32 (Austin Appleby), NON-cryptographic. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
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–2011MurmurHash3 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 4 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
value = root.call("checksum", "murmurhash3", None, b"123456789")[0]
nextssl_root_checksum("murmurhash3", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_checksum_in(reg::all(), Policy::Any, "murmurhash3", &Params::new())?;
let value = alg.checksum(b"123456789")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More checksums and non-cryptographic hashes
All 130Frequently asked questions
What is Murmurhash3?
Murmurhash3 is a checksum in the MurmurHash3 family. MurmurHash3 is a non-cryptographic hash function by Austin Appleby, released in 2011 as part of the SMHasher project.
What are the Murmurhash3 sizes?
In NextSSL, Murmurhash3 uses: output 4 bytes.
Who designed Murmurhash3 and when?
Murmurhash3 belongs to the MurmurHash3 family, first published in 2011 by Austin Appleby. Its origin: SMHasher project.
Which standards define Murmurhash3?
Murmurhash3 is referenced by MurmurHash3 x86_32 (Austin Appleby), NON-cryptographic.
Is Murmurhash3 safe to use?
Murmurhash3 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).