Feistel Network 2D: Circuit & Avalanche Matrix
Interactive 2D Feistel-cipher circuit: watch a 16-bit block flow round by round through rotate / XOR / S-box / permute stages on a pannable schematic, and probe the avalanche effect with a live Monte-Carlo bit-flip probability matrix and a Hamming-distance graph.
Most classical block ciphers, including DES, are built from a Feistel network: a block is split into two halves that swap places every round while one half is mixed with the other through a round function keyed off a schedule derived from a master key. This 2D build runs the exact same 16-bit Feistel cipher as its 3D counterpart — rotate, XOR with a round key, substitute through an S-box, permute — but visualizes it as a pannable signal-flow circuit plus a live Monte-Carlo matrix that measures, for every possible single-bit flip, how strongly each output bit responds. Watching the matrix wash out toward a uniform 50% shows, statistically rather than anecdotally, why a well-designed cipher makes one flipped input bit unpredictable in every output bit after only a few rounds.
An interactive 2D Feistel-cipher circuit: watch a 16-bit block flow round by round through rotate/XOR/S-box/permute stages on a pannable, zoomable schematic, tune the master key and round count live, and probe the avalanche effect with a 16x16 Monte-Carlo bit-flip probability matrix plus a Hamming-distance graph.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install