Bucket 73
49
grape
full: 78e8a349
Hash functions
See how different inputs can map to the same shortened hash bucket. Adjust the hash size and watch collisions become more or less likely.
Educational demo only
This playground intentionally truncates a toy hash so collisions are visible. It is not a cryptographic hash implementation.
The same full demo hash is shortened to a smaller bucket space so collisions are easier to observe.
Values
8
Buckets
256
Collision groups
0
Birthday chance
10.4%
Explanation
A collision happens when two different inputs land in the same hash bucket. This playground intentionally truncates a demo hash so collisions are easy to see.
Buckets with more than one value are collisions.
Bucket 73
49
grape
full: 78e8a349
Bucket 93
5D
banana
full: e70f225d
Bucket 99
63
hotel
full: 7e5d2f63
Bucket 124
7C
echo
full: 83f1b77c
Bucket 166
A6
foxtrot
full: ff2b6fa6
Bucket 174
AE
carrot
full: a32e52ae
Bucket 182
B6
delta
full: d2d1e9b6
Bucket 234
EA
apple
full: c2d64aea
| # | Value | Full demo hash | Truncated hash | Bucket |
|---|---|---|---|---|
| 1 | apple | c2d64aea | EA | 234 |
| 2 | banana | e70f225d | 5D | 93 |
| 3 | carrot | a32e52ae | AE | 174 |
| 4 | delta | d2d1e9b6 | B6 | 182 |
| 5 | echo | 83f1b77c | 7C | 124 |
| 6 | foxtrot | ff2b6fa6 | A6 | 166 |
| 7 | grape | 78e8a349 | 49 | 73 |
| 8 | hotel | 7e5d2f63 | 63 | 99 |