Home▸Cryptography▸LFSR Keystream: Maximal Period, Berlekamp-Massey Linear Complexity and the Known-Plaintext Break

LFSR Keystream: Maximal Period, Berlekamp-Massey Linear Complexity and the Known-Plaintext Break

Run a linear feedback shift register as a toy stream cipher and see why it is breakable. A primitive polynomial gives period 2^n - 1 with 2^(n-1) ones and autocorrelation exactly -1; an attacker who sees only 2n keystream bits recovers the whole register with Berlekamp-Massey and predicts every later bit. Blender-built register cells, XOR gate and bit stream, with independent numerical checks built in.

Cryptography3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
LFSR Keystream: Maximal Period, Berlekamp-Massey Linear Complexity and the Known-Plaintext Break ↗ Open standalone

Run a linear feedback shift register as a toy stream cipher and see why it is breakable. A primitive polynomial gives period 2^n - 1 with 2^(n-1) ones and autocorrelation exactly -1; an attacker who sees only 2n keystream bits recovers the whole register with Berlekamp-Massey and predicts every later bit. Blender-built register cells, XOR gate and bit stream, with independent numerical checks built in.

⚙ Under the hood

Run a linear feedback shift register as a toy stream cipher and see why it is breakable. A primitive polynomial gives period 2^n - 1 with 2^(n-1) ones and autocorrelation exactly -1; an attacker who sees only 2n keystream bits recovers the whole register with Berlekamp-Massey and predicts every later bit. Blender-built register cells, XOR gate and bit stream, with independent numerical checks built in.

CryptographyEncryptionAlgorithmsLFSRBerlekamp-MasseyLinear ComplexityStream CipherCryptanalysis

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)