Enter a keyword or a number key like 3142. No key? “Try all” tests every column order.
ZEBRAS gives six columns.WEAREDISCOVEREDFLEEATONCE under ZEBRAS becomes EVLNACDTESEAROFODEECWIREE. Type it into the tool to see the grid.
If the message doesn't fill the last row, some setters pad it with X's and some leave it short. The decoder handles both. A number key such as 632415 is the same as a keyword: it just states the column numbers outright. When you crack a message without the key, the result is given as a number key, because the original keyword can't be recovered. Many words give the same order.
A transposition keeps every letter, so frequency analysis looks exactly like English. That's the giveaway. “Try all” decodes with every column order for 2 to 7 columns, 5,912 orders in all, and ranks them by how English they read. Longer keys need a smarter search. In a puzzle, the keyword is usually hidden nearby.
Columnar transposition was the backbone of many military ciphers. Doing it twice, as double transposition, was strong enough for field use into the Second World War.
Write the message in rows under the keyword, one letter per column. Then read the columns off top to bottom, in the alphabetical order of the keyword's letters. The letters don't change, only their order.
Some setters pad it with X's, others leave it short. The tool decodes either kind. Untick “Pad the last row” to encode without padding.
Yes. 3142 means the column under 1 is read first, then 2, and so on. A keyword is just a way to remember the numbers: its letters' alphabetical order gives the same thing.
Choose “Try all”. The tool tests every column order for 2 to 7 columns, about 5,900 possibilities, and ranks them by how English they read.