For Engineers · Hamming Code
Hamming Code for a stream cipher
Built for engineers using it for real design work. Go from concept to a running model in the browser, then scale to the cloud when needed. Simulate a stream cipher live below — adjust the inputs and watch it respond, right in your browser.
Hamming Error CorrectionLive
fixing a flipped bit
transmitted codeword (7 bits)
0110011
received (with your error)
0110011
no error detected
Controls
Data bits (4)
Corrupt a transmitted bit
Presets
no error
The Hamming(7,4) code adds three parity bits to four data bits so any single-bit error can be found and fixed. Each parity bit checks a different overlapping group; after transmission, recomputing them gives a syndrome whose binary value points straight at the corrupted position. Error-correcting codes like this protect RAM, deep-space links, and QR codes.
Data Inspector
Parity bits010
Syndrome0
Error atnone
Corrected?yes ✓
Governing equation
Reading this result: No bit was flipped, so all three parity checks pass and the syndrome is 0 — the receiver accepts the codeword unchanged.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:StudentsResearchersEducatorsHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Hamming Code
Frequently asked questions
- Is this good for engineers?
- Yes — this version of "Hamming Code for a stream cipher" is framed for engineers using it for real design work. Go from concept to a running model in the browser, then scale to the cloud when needed.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.