IT lexicon › Security › Transposition cipher

Transposition cipher

Security På svenska → Updated: 2026-10-11

Keeps every letter but shuffles their order. The opposite of substitution, and half the recipe of every modern block cipher.

The plaintext is written into one pattern and read out in another. The rail fence cipher zigzags across a few rows; columnar transposition writes row by row into a grid and reads column by column in an order set by a keyword. Do the columnar step twice and you have double transposition, which agents and armies relied on well into the Second World War.

The weakness shows up in the statistics at once: letter frequencies are exactly those of the plaintext, so a cryptanalyst knows immediately what kind of cipher is in play. The strength arrives when shuffling is combined with substitution, as in ADFGVX. Claude Shannon formalised the idea in 1949 as confusion and diffusion, and every modern block cipher still alternates the two.

← Back to the lexicon