Home▸Cryptography▸LFSR Keystream: Register Bits, Period and Linear Complexity Profile (2D)

LFSR Keystream: Register Bits, Period and Linear Complexity Profile (2D)

The same LFSR model as the 3D scene: register cells with XOR taps, the keystream window, the attacker's recovered register, the linear complexity staircase and the autocorrelation of one period.

Cryptography2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
LFSR Keystream: Register Bits, Period and Linear Complexity Profile (2D) ↗ 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

The same LFSR model as the 3D scene: register cells with XOR taps, the keystream window, the attacker's recovered register, the linear complexity staircase and the autocorrelation of one period.

LFSRBerlekamp-MasseyLinear ComplexityStream CipherCryptanalysis

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)