Home▸Computer Science▸Computer Science Cryptography Simulation

Feistel Cipher: Rounds and the Avalanche Effect

Interactive 3D Feistel-network cipher: encrypt a 16-bit block through configurable rounds, flip one input bit, and watch the avalanche effect scramble the ciphertext round by round.

Computer Science2DModerate60 FPS📱 Mobile-adapted
computer-science-cryptography-simulation ↗ Open standalone

This simulator builds a real 16-bit Feistel-network block cipher — the same round structure used by DES — and renders every round as a 3D tower of glowing bits. Type a plaintext block and a key in hexadecimal, choose how many rounds to run, and step or play through the encryption to watch the substitution-box round function scramble the block layer by layer. Toggling the avalanche twin flips a single input bit and re-runs the identical key schedule alongside the original, so you can watch two nearly-identical blocks diverge into unrecognizably different ciphertexts — a live demonstration of why a well-designed cipher makes a one-bit change ripple through roughly half the output.

⚙ Under the hood

This simulation allows you to experiment with various cryptographic algorithms and techniques, such as RSA encryption and Diffie-Hellman key exchange. By manipulating parameters and observing the results, you can gain a deeper understanding of how these systems protect data in modern digital communications.

CryptographyEncryptionKey Exchange

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

What did you find?

Add reproduction steps (optional)