# Columnar Transposition Ciphers

## How a columnar transposition differs from a simple one

The simple (or 'anagram') cipher described on the previous pages does not really hide the original letters from the plaintext. If, for example, a message is transposed using a key that is 9 characters long, then the first nine letters of the ciphertext will contain the first nine letters of the plaintext, albeit in a different order.

The columnar transposition cipher, as will be shown below, does a better job of dispersing the original plaintext letters throughout the ciphertext, whilst again not replacing any letters from the plaintext with any new ones.

## Creating a columnar transposition cipher

In this example, we will apply a columnar transposition to a message using a key that is 6 characters long. The first step is to write that message into a table with 6 columns, one for each character in the key:

 0 1 2 3 4 5 A C O L U M N A R T R A N S P O S I T I O N D O E S A B E T T E R J O B T H A N A S I M P L E T R A N S P O S I T I O N C I P H E R A T S C R A M B L I N G T H E O R I G I N A L M E S S A G E

So far, this is exactly as what would happen with a simple / anagram transposition cipher. The next step is the same too: rearrange the columns according to the characters in the key. In this example, we will use the key of '314250' and, when applied to the table above, we get the following:

 3 1 4 2 5 0 L C U O M A T A R R A N O S S P I N N I D O O T B S E A T E J E O R B T N H A A S T L M E P T I S A P N O R I I O T N S H I E P R C C T R S A A I B N L G M O H R E I T A I L N M G A S G S E E

To get the ciphertext using the simple / anagram method, we would now read from left-to-right and down the rows: LCUOMATARRA ... etc.

To get the ciphertext using the columnar transposition method, we read down each column, starting with the leftmost column and finishing with the one on the right:

• LTONBJNLSIHCIOAA
• CASISEHMAIITBHIS
• URSDEOAEPOERNRLG
• ORPOARAPNTPSLENS
• MAIOTBSTONRAGIME
• ANNTETTIRSCAMTGE

Combining all the columns together and inseeting a space after every block of five characters, gives the ciphertext below:

LTONB JNLSI HCIOA ACASI SEHMA IITBH ISURS DEOAE POERN RLGOR POARA PNTPS LENSM AIOTB STONR AGIME ANNTE TTIRS CAMTG E

To illustrate how effectively the transposition cipher scrambles the letters from the plaintext, I have underlined the first 3 letters from the plaintext, 'ACO' (from 'A COLUMNAR TRANSPOSITION ...'), in the ciphertext above. Whereas you can sometimes solve a simple / anagram transposition cipher by simply looking at it, the example above shows that this is much more difficult to do with a columnar transposition cipher and this is because letters that were contiguous in the plaintext can be a long way apart in the ciphertext.

Cipher Challenge competition    Leave feedback