In classical cryptography, a transposition cipher changes one character from the plaintext to another (to decrypt the reverse is done). That is, the order of the characters is changed. Mathematically a bijective function is used on the characters' positions to encrypt and an inverse function to decrypt.
Following are some implementations.
WRIOR FEOEP EESVE LANJD ADCED ETCXQ
(Grouping letters into blocks of a standard size, typically five, was a practice developed for ease of transmission by telegraph.) The rail fence cipher is not very strong; the number of practical keys is small enough that a cryptanalyst can try them all by hand. See also scytale
The easiest way to decipher a rail fence cipher is to use the following method:
1) First, run all the letters into a long string. WRIORFEOEPEESVELANJDADCEDETCXQ
2) Next, divide the string of letters into a number of even groups equal to the number of rails. WRIORFEOEP|EESVELANJD|ADCEDETCXQ Since there are 30 letters, and we know there are 3 rails, we divide the group into 3 groups of 10.
3) Finally, write down the first letter from group 1, from group 2, and group 3, followed by the second letter from group 1, group 2, and group 3, etc. WEAREDISCOVEREDFLEEATONCEJXPDQ
4) Now just break the string of letters into easily identifyable words, separate the nulls, and the code is deciphered.
EJX CTE DEC DAE WRI ORF EON ALE VSE
(The clerk has broken this ciphertext up into blocks of three to help avoid errors).
Route ciphers have many more keys than a rail fence. In fact, for messages of reasonable length, the number of possible keys is potentially too great to be enumerated even by modern machinery. However, not all keys are equally good. Badly chosen routes will leave excessive chunks of plaintext, or text simply reversed, and this will give cryptanalysts a clue as to the routes.
An interesting variation of the route cipher was the Union Route Cipher, used by Union forces during the American Civil War. This worked much like an ordinary route cipher, but transposed whole words instead of individual letters. Because this would leave certain highly sensitive words exposed, such words would first be concealed by code. The cipher clerk may also add entire null words, which were often chosen to make the ciphertext humorous. See * for an example.
In a regular columnar transposition cipher, any spare spaces are filled with nulls; in an irregular columnar transposition cipher, the spaces are left blank. Finally, the message is read off in columns, in the order specified by the keyword. For example, suppose we use the keyword ZEBRAS and the message WE ARE DISCOVERED. FLEE AT ONCE. In a regular columnar transposition, we write this into the grid as: 6 3 2 4 1 5 W E A R E D I S C O V E R E D F L E E A T O N C E Q K J E U Providing five nulls (QKJEU) at the end. The ciphertext is then read off as: EVLNE ACDTK ESEAQ ROFOJ DEECU WIREE
In the irregular case, the columns are not completed by nulls: 6 3 2 4 1 5 W E A R E D I S C O V E R E D F L E E A T O N C E This results in the following ciphertext: EVLNA CDTES EAROF ODEEC WIREE
To decipher it, the recipient has to work out the column lengths by dividing the message length by the key length. Then he can write the message out in columns again, then re-order the columns by reforming the key word.
Columnar transposition continued to be used for serious purposes as a component of more complex ciphers at least into the 1950's.
As an example, we can take the result of the irregular columnar transposition in the previous section, and perform a second encryption with a different keyword, STRIPE, which gives the permutation "564231": 5 6 4 2 3 1 E V L N A C D T E S E A R O F O D E E C W I R E E
As before, this is read off columnwise to give the ciphertext:
CAEEN SOIAE DRLEF WEDRE EVTOC
During World War I, the German military used a double columnar transposition cipher. The system was regularly solved by the French, naming it Übchi, who were typically able to find the key in a matter of days after a new one had been introduced. However, the French success became widely-known and, after a publication in Le Matin, the Germans changed to a new system on 18 November 1914.
During World War II, the double transposition cipher was used by Dutch Resistance groups, the French Maquis and the British Special Operations Executive (SOE). It was also used as an emergency cipher for the German Army and Navy.
Until the discovery of the VIC cipher, double transposition was generally regarded as the most complicated cipher that an agent could operate reliably under difficult field conditions.
Simpler transpositions also often suffer from the property that keys very close to the correct key will reveal long sections of legible plaintext interspersed by gibberish. Consequently such ciphers may be vulnerable to optimum seeking algorithms such as genetic algorithms.
When such a fractionated message is transposed, the components of individual letters become widely separated in the message, thus achieving Claude E. Shannon's diffusion. Examples of ciphers that combine fractionation and transposition include the bifid cipher, the trifid cipher, the ADFGVX cipher and the VIC cipher.
Classical ciphers | Permutations
Transposition (Kryptographie) | Chiffre de transposition | Dubbele transpositie cijfer | 転置式暗号 | Transzpozíció | Cifra de transposição
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Transposition cipher".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world