GxHash explained in plain terms means understanding the hash that turned the processor’s AES instructions into the fastest non-cryptographic hash around, a design from 2023 that hashes with the same silicon that encrypts. The central question is why a hash would borrow a cipher’s instructions when plain arithmetic already works, and the answer is that AES rounds mix bits better than any hand-rolled step, so GxHash gives programs record speed with a design that is barely longer than the cipher it borrows, and that leverage is the whole point of the design.
GxHash is a fast non-cryptographic hash function created by Olivier Giniaux, published in a paper in November 2023, and built on the twelve-round style of AES mixing. It turns a message into a 32-bit, 64-bit or 128-bit value by running blocks through AES rounds in parallel, and it is built on the idea that a hash should use every trick a modern CPU offers, which means the design is meant for machines with AES instructions, and that hardware focus is what makes it unlike the hashes of its era.
This article explains what GxHash is, how it works, and where it runs in the real world.
Key takeaways
- GxHash is an AES hash from 2023, by Olivier Giniaux.
- It produces 32-bit, 64-bit or 128-bit outputs.
- It runs blocks in parallel for high instruction-level parallelism.
- It needs hardware AES and has no software fallback.
- It is the fastest hash in several published benchmarks.
What GxHash is
GxHash is a hash that turns a message into a fingerprint by running AES rounds, and that borrowing is what makes it unusual among hashes. A normal hash mixes with multiplies and rotations, but GxHash runs the processor’s AES instructions, which means the mixing is done by silicon built for exactly that job, and because the instructions are fast, the hash is fast.
Its signature feature is the wide pipe. Most hashes keep a state the same size as their output, but GxHash keeps a 128-bit internal state even when it returns 64 bits, which means the mixing has more room to work, and because the state is wide, the final value depends on the whole message in a way a narrow state cannot match.
The design was a reaction to the way CPUs had changed. Processors had gained AES instructions and deep pipelines, so Giniaux asked whether a hash could use all of them at once, because older hashes were built for machines that no longer exist, and that practicality is what made GxHash worth publishing.
It became one of the best-known fast hashes in the world, and it is named in every discussion of the field. GxHash runs in the Polars data library, it is tested in the SMHasher3 suite, and it is still the first example engineers meet when they learn that a cipher’s instructions can hash, which means the design survives as a tool even though it needs special hardware.
Its most famous property is its speed on large inputs. GxHash processes 128-byte blocks with several independent AES chains at once, which means the CPU’s pipelines stay busy, and because the chains only meet at the end, the hash uses the full width of a modern core.
Our guide to Meow Hash explains the earlier AES hash built for game assets, and our guide to wyhash explains the multiply-based hash that sets the pace for short keys.
How GxHash works
Everything starts with the input, which is split into blocks. GxHash takes the message and cuts it into pieces for its parallel chains, which means the starting state depends on the message, and because the split is fixed, the same input always gives the same hash.
Each step begins with the compression, which runs AES rounds on a block. GxHash takes a 16-byte block and passes it through AES encryption rounds, which means fresh data arrives at every step, and because the rounds are single instructions, the mixing costs almost nothing.
The temporal construction is what makes the design work as a whole. GxHash processes groups of blocks independently and only combines their temporary values at the end, which means the CPU can run many chains at once, and because the chains do not depend on each other, the design avoids the long dependency chains that slow other hashes.
The state spreads the effect further. The temporary values are folded into the 128-bit state as the blocks are consumed, which means each block mixes with the ones before it, and because the state is wide, the mixing builds up as data flows in.
The finalisation is what turns the state into a digest. After the last block, GxHash mixes the seed into the state with more AES rounds and reads out the result, which means the digest depends on the whole message and the seed, and because the final mix uses the same AES step, the design needs no special finishing machinery.
The output comes from the final state, read out as 32, 64 or 128 bits. GxHash outputs the folded state directly as the fingerprint, which means the result is a fixed size whatever the input, and that size is exactly what a hash table or a checksum needs for its key.

Comparing GxHash with other fast hashes
GxHash is one of several fast hashes built for speed, and each was built with a different emphasis. Meow Hash is the AES hash built for bulk game assets, wyhash is the multiply-based hash tuned for short keys, and GxHash is the one built on parallel AES chains for large inputs, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | GxHash | Meow Hash | wyhash |
|---|---|---|---|
| Output size | 32, 64 or 128 bits | 128 bits | 64 bits |
| Core step | AES rounds | AES rounds | Multiply and fold |
| Needs AES | Yes | Yes | No |
| Seed handling | Mixed in at finalisation | 128-byte seed | Secret array of 4 words |
| Best for | Large inputs | Bulk asset hashing | Short keys |
The practical result is that GxHash is the right choice for large inputs, Meow Hash suits bulk asset hashing, and wyhash fits short keys instead.
Where GxHash is used
Data libraries use it to hash columns fast. Polars hashes its expressions with GxHash, because a data frame that hashes millions of values needs the fastest mixer available, and that speed is the reason GxHash runs in real analytics rather than only in benchmarks.
Hash tables use it for large keys. A table that hashes long strings wants a hash that processes big blocks, because a byte-at-a-time hash becomes the bottleneck, and that width is the reason GxHash appears in data systems.
Benchmarking uses it as a speed reference. Engineers still quote GxHash when they discuss how fast a hash can run, because it is the clearest example of AES instructions paying off, and that number shapes how new hashes are measured.
Checksum tools use it to fingerprint files quickly. A tool that hashes gigabytes wants a hash that uses every core, because a slow hash wastes the machine, and that throughput is the reason GxHash earns its keep in file processing.
Teaching uses it as the AES-hash example. Courses introduce GxHash when they explain that a cipher’s instructions can hash, because it is the clearest case of the idea in a real design, and a student who understands GxHash understands why hardware choice matters in hash design.
Strengths and limits
The greatest strength of GxHash is its speed on large inputs. A hash that runs parallel AES chains gives programs faster fingerprints for free, and that strength is real, measured in open benchmarks and confirmed by the libraries that adopted it.
It is also a strength that the design is simple to explain. A wide state, parallel chains and AES rounds is a design anyone can describe, and that simplicity is worth more than cleverness in a field where a hash nobody can audit is a hash nobody trusts.
The limits are real, though, and the biggest is the hardware requirement. GxHash has no software fallback, which means a machine without AES instructions cannot run it at all, and a system that must run everywhere must use a portable hash instead.
GxHash checklist
- Use GxHash for fast hashing, never for security or passwords.
- Remember it outputs 32, 64 or 128 bits from AES rounds.
- Note it needs hardware AES to run at all.
- Compare it with Meow Hash to see two kinds of AES hash.
- Study the temporal construction, which is what keeps it fast.
- Check the seed, since it is mixed in only at the end.
- Keep real secrets behind cryptographic hashes.
- Read the 2023 paper to see how the design was built.
- Choose a portable hash when hardware may vary.
Frequently asked questions
What is GxHash in simple terms?
It is a 2023 fast hash that turns any input into a 32-bit, 64-bit or 128-bit fingerprint by running blocks through AES rounds in parallel.
Who created GxHash?
Olivier Giniaux, who published the design in a paper in November 2023.
How is GxHash different from Meow Hash?
Both are AES hashes, but GxHash runs parallel chains for large inputs while Meow Hash runs eight lanes for bulk game assets.
Is GxHash still secure?
It is fast and well tested, but it is a non-cryptographic hash, so it must never guard secrets or signatures.
Where is GxHash used?
In the Polars data library, in hash tables, in benchmarking, in file fingerprinting, and in teaching about AES-based hashing.
When should I use GxHash?
When you need the fastest hash for large inputs on AES hardware, when your inputs are trusted, or when you study parallel hash design.
The bottom line
GxHash explained in one line is this: the parallel AES hash, a 2023 design that turned cipher instructions into record speed and taught the field that a hash can use every pipeline.
It is proof that borrowing beats building, and the reason it still matters is that every fast hash designed since has been judged partly by the lesson GxHash taught.
This article is general information about how GxHash works, not advice about choosing encryption for a particular device or system.







