दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Cryptography, blockchain and crypto › Manual for the Solution of Military Ciphers › Full text

Manual for the Solution of Military Ciphers

Parker Hitt · part 2 of 5 · 30,742 words

Public-domain edition · source: Project Gutenberg eBook #48871 · Public domain in the USA (Project Gutenberg)

Chapter IV

Classes of Ciphers

There are, in general, two classes of ciphers. These are the transposition cipher and the substitution cipher.

Substitution ciphers may be made up of substituted letters, numerals, conventional signs or combinations of all three; and furthermore, for a single letter of the original text there may be substituted a single letter, numeral or sign or two or more of each, or a whole word or group of figures, combination of conventional signs, or combinations of all three of these elements. Thus substitution ciphers may vary from those of extreme simplicity to those whose complication defies any ordinary method of analysis and whose solution requires the possession of long messages and much time and study. Fortunately the more difficult substitution ciphers are rarely used for military purposes, on account of the time and care required for enciphering and deciphering.

Transposition ciphers are limited to the characters of the original text. These characters are rearranged singly, according to some predetermined method or key (monoliteral transposition), or whole words are similarly rearranged (route cipher).

There may also be a combination of transposition and substitution methods in enciphering a message but in this case it will fall into the substitution class on first determination and after solution as a substitution cipher it must be handled as a transposition cipher. Examples of this case will be given.

We may also find transposition or substitution methods applied to words taken from a code book, or to numbers which represent these words. Thus cipher methods blend into code work, for a code is, after all, only a specialized substitution cipher.

We can now lay down the rules for determining whether any given cipher belongs to the substitution class or to the transposition class.

Count the number of letters in the message, the number of vowels, AEIOU, the number of the consonants, LNRST, and the number of the consonants, JKQXZ.

If the text is English and the cipher is a transposition cipher, this proportion will hold; vowels AEIOU constitute 40% of the whole; consonants LNRST, 30% and consonants JKQXZ, 3%.

If the text be Spanish the proportions for a transposition cipher will be: vowels AEIOU 45%, consonants LNRST, 30%; consonants JKQXZ, 2%.

If these proportions do not hold within 5%, one way or the other, the cipher is certainly a substitution cipher. Note, however, that often the end of a message is filled with letters like K, X, Z to complete cipher words and it is best to neglect the last word or words in making a count. Also, if the cipher be a long one, this determination can safely be made by taking 100 or 200 consecutive letters of the message, either from the beginning or, if nulls at the beginning are suspected, from the interior of the message.

The distinction between the route cipher (transposition) and the substitution cipher where whole words are substituted for letters of the original text, must be made on the basis of the words actually used. It is better to consider such a message as a route cipher when the words used appear to have some consecutive meaning bearing on the situation at hand. A substitution cipher of this variety would only be used for transmission of a short message of great importance and secrecy, and then the chances are that certain words corresponding to A, E, N, O and T would appear with such frequency as to point at once to the fact that a substitution cipher was used. Watch the initial or terminal letters in such a cipher; they may spell the message.

In general, the determination of class by proportion of vowels, common consonants and rare consonants may be safely followed. We will now proceed to the examination of the more common varieties of each class of cipher.

Chapter V

Examination of Transposition Ciphers

After having decided that a cipher belongs to the transposition class, it remains to decide on the variety of cipher used. As, by definition, a transposition cipher consists wholly of characters of the original message, rearranged according to some law, we may, in general, say that such a cipher offers fewer difficulties in solution than a substitution cipher. A transposition cipher is like a picture puzzle; the parts are all there and the solution merely involves their correct arrangement.

Case 1.--Geometrical ciphers. This case includes all ciphers in which a certain number of the characters are chosen so that they will form a square or rectangle of predetermined dimensions; and then these characters are arranged according to a geometrical design.

Taking the message:

A B C D E F G H I J K L M N O P Q R S T U V W X

of twenty-four letters and assuming a rectangle of six letters horizontally, and four letters vertically, we may have:

(a) Simple Horizontal:

A B C D E F F E D C B A S T U V W X X W V U T S G H I J K L L K J I H G M N O P Q R R Q P O N M M N O P Q R R Q P O N M G H I J K L L K J I H G S T U V W X X W V U T S A B C D E F F E D C B A

(b) Simple Vertical:

A E I M Q U D H L P T X U Q M I E A X T P L H D B F J N R V C G K O S W V R N J F B W S O K G C C G K O S W B F J N R V W S O K G C V R N J F B D H L P T X A E I M Q U X T P L H D U Q M I E A

(c) Alternate Horizontal:

A B C D E F F E D C B A X W V U T S S T U V W X L K J I H G G H I J K L M N O P Q R R Q P O N M M N O P Q R R Q P O N M L K J I H G G H I J K L X W V U T S S T U V W X A B C D E F F E D C B A

(d) Alternate Vertical:

A H I P Q X D E L M T U X Q P I H A U T M L E D B G J O R W C F K N S V W R O J G B V S N K F C C F K N S V B G J O R W V S N K F C W R O J G B D E L M T U A H I P Q X U T M L E D X Q P I H A

(e) Simple Diagonal:

A B D G K O G K O S V X O K G D B A X V S O K G C E H L P S D H L P T W S P L H E C W T P L H D F I M Q T V B E I M Q U V T Q M I F U Q M I E B J N R U W X A C F J N R X W U R N J R N J F C A

A C F J N R J N R U W X R N J F C A X W U R N J B E I M Q U F I M Q T V U Q M I E B V T Q M I F D H L P T W C E H L P S W T P L H D S P L H E C G K O S V X A B D G K O X V S O K G O K G D B A

(f) Alternate Diagonal:

A B F G N O G N O U V X O N G F B A X V U O N G C E H M P U F H M P T W U P M H E C W T P M H F D I L Q T V B E I L Q S V T Q L I D S Q L I E B J K R S W X A C D J K R X W S R K J R K J D C A

A C D J K R J K R S W X R K J D C A X W S R K J B E I L Q S D I L Q T V S Q L I E B V T Q L I D F H M P T W C E H M P U W T P M H F U P M H E C G N O U V X A B F G N O X V U O N G O N G F B A

(g) Spiral, clockwise:

A B C D E F L M N O P A I J K L M N D E F G H I P Q R S T G K V W X Q B H U V W X O C R S T U J O X W V U H J U T S R C G T S R Q P B Q X W V K N M L K J I I H G F E D F E D C B A A P O N M L

(h) Spiral, counter clockwise:

A P O N M L N M L K J I I H G F E D F E D C B A B Q X W V K O X W V U H J U T S R C G T S R Q P C R S T U J P Q R S T G K V W X Q B H U V W X O D E F G H I A B C D E F L M N O P A I J K L M N

It is simply a matter of inspection to read a message in a cipher of this type, once the dimensions of the rectangles have been determined. We place the whole or a portion of the message in such rectangles and read horizontally, vertically and diagonally forward and backward. Parts of words will at once be apparent and the whole message is soon deciphered. Two examples will show the process.

Message

Ilvgioiaeitsrnmanhmng

This message contains eight vowels or 38% out of twenty-one letters, and the letters LNRST occur 7 times or 33%, the letters XQJKZ not appearing. It is therefore a transposition cipher. Twenty-one letters immediately suggest seven columns of three letters each or three columns of seven letters each. Trying the former we have:

I L V G I O I A E I T S R N M A N H M N G

and reading down each column in succession (Case 1-b) reveals the message to be "I am leaving this morning."

Message

M S I B R O R S E E V U E E M C O R E R E L I D E T O E P Q E N R E R N S E R Y E C O L L E R E U S P L U R C E L O A J A E H U H P F A S O N N O A A E P I U A P P E A C U Q A R U O P O E I I R R M I A F D A A R Q U B O Z A E G E R S F S X

There are 120 letters in this message with 57 vowels or 47% vowels, and the letters LNRST occur 31 times or 26% of the whole.

Non-occurrence of K and W and vowel proportion leads us to the assumption that it is a transposition cipher of a Spanish text. The factors of 120 are 5 × 3 × 2 × 2 × 2. We may then have one rectangle of 4 × 30 or one of 5 × 24 or two of 5 × 12, or three of 5 × 8, or four of 5 × 6, or five of 3 × 8, or ten of 3 × 4, or twenty of 3 × 2. The message being in a rectangle of 4 × 30, we can inspect it as it stands and this is clearly not the arrangement if it be a geometrical transposition cipher at all. It is best however to try the largest possible rectangles first so we will put it in the form 5 × 24, thus:

M S I B R O R S E E V U E E M C O R E R E L I D E T O E P Q E N R E R N S E R Y E C O L L E R E U S P L U R C E L O A J A E H U H P F A S O N N O A A E P I U A P P E A C U Q A R U O P O E I I R R M I A F D A A R Q U B O Z A E G E R S F S X

Here an inspection shows this to be Case 1-f, alternate diagonal, and the text to be "ME SITUO SOBRE PARRAL PORQUE ME PRESENCIA FUE REVELADA POR U"; here the sense breaks but note that U is the twelfth letter of the line and continue as if the rectangle were 5 × 12 and we have "NA PAREJA QU." Now inspect the second rectangle of 5 × 12 in the same way and the sense continues "E SE ME ACERCO Y HUBO QUE RECHAZAR POR EL FUEGO ALLI ESRERO ORDENES FINISX".

The practical way of examining a cipher of this type is to have several men prepare rectangles of different dimensions, using the letters of the cipher in the order received. The rectangles can be inspected very rapidly when once prepared. Note that the dimensions of any rectangle will rarely be such as to contain more than fifty letters, on account of the necessity of filling up a rectangle with nulls if the number of letters of the message is just a little greater than a multiple of the rectangle. Also large rectangles give, for all but the diagonal method, whole words in a line or column and these are easily noted.

The following ciphers come under Case 1:

Case 1-i.--The rail fence cipher, useful as an operators' cipher but permits of no variation and is therefore read almost as easily as straight text when the method is known. The message:

Hostile Cavalry Has Retired

is written:

O T L C V L Y a R T R D H S I E a a R H S E I E

and is sent:

Otlcv Lyart Rdhsi Eaarh Seiex

Case 1-j.

Message

S S O H S T P F O R I E E A E T Q N E T F A I X E G L F D R A U L R N O S R X L H A T R O

To solve this cipher, read down the columns in this order 8, 1, 15, 2, 14, 3, 13, 4, 12, etc. A variation is to arrange the cipher so the columns are read upwards. Another is to arrange the ciphers so the columns are read alternately upward and downward. The factors of the number of letters in this case give the shape of the rectangle as usual.

It will be seen that there are a great number of possible transposition ciphers that come under Case 1 but practically all of them are useless from a military standpoint because they do not depend on a key which can be readily and frequently changed. However such ciphers constantly crop up in cipher examination, being used for special communication between parties who consider the regular military ciphers too complicated. Thus some of these expedients have been used.

Reversed Writing.--(Special case of Case 1-a).

LEAVING TONIGHT is enciphered THGINOT GNIVAEL or it may be reversed by words, thus GNIVAEL THGINOT or by groups of five letters, thus IVAEL NOTGN XTHGI.

Vertical Writing.--(Special case of Case 1-b). Same message is enciphered,
LT EO AN VI and is sent, LTEOA NVIIG NHGTX. IG NH GT

Case 2.--This case includes all transposition ciphers in which lines and columns of the text are rearranged according to some key word or key number. There are many varieties of this case but their solution usually is arrived at through the methods suggested for Case 1, that is, arrangement into appropriate rectangles and examination of lines and columns for words or syllables. Rearrangement of columns or lines follows until the solution is completed.

Case 2-a.

Message

HIIGF TNGHI NTCVN IEIOT CYIFY LHAEA ESNBA EEEEN RWGBN YDELR OAESG RNEBO VNLDA ICAOA LCNDT IRGVA CDOIE SEREC DVPEI AFIFL RINEH ETT

There are 108 letters in this message and examination shows it to be a transposition cipher, English text. The number of letters, 108, immediately suggests a rectangle of 12 × 9 or 9 × 12 letters. Put into this form we have:

Vowels Vowels

H I I G F T N G H I N T 3 H I I G F T N G H 2 C V N I E I O T C Y I F 5 I N T C V N I E I 4 Y L H A E A E S N B A E 6 O T C Y I F Y L H 2 E E E N R W G B N Y D E 4 A E A E S N B A E 6 L R O A E S G R N E B O 5 E E E N R W G B N 3 V N L D A I C A O A L C 5 Y D E L R O A E S 4 N D T I R G V A C D O I 4 G R N E B O V N L 2 E S E R E C D V P E I A 6 D A I C A O A L C 5 F I F L R I N E H E T T 4 N D T I R G V A C 2 D O I E S E R E C 5 D V P E I A F I F 4 L R I N E H E T T 3

The vowel count of the lines shows the first arrangement to be the more likely. We will now number the columns and try pairing off certain ones which in no line would give impossible combinations of letters.

1 2 3 4 5 6 7 8 9 10 11 12

H I I G F T N G H I N T C V N I E I O T C Y I F Y L H A E A E S N B A E E E E N R W G B N Y D E L R O A E S G R N E B O V N L D A I C A O A L C N D T I R G V A C D O I E S E R E C D V P E I A F I F L R I N E H E T T

These combinations appear among others:

1 6 2 4 5 2

H T I G F I C I V I E V Y A L A E L E W E N R E L S R A E R V I N D A N N G D I R D E C S R E S F I I L R I

The word FIGHT stares at us from the first line; let us arrange the columns thus:

5 2 4 1 6 3

F I G H T I E V I C I N E L A Y A H R E N E W E E R A L S O A N D V I L R D I N G T E S R E C E R I L F I F

We have the words FIGHTI(NG), VICIN(ITY), RENEWE(D), ANDVIL(LA), RDINGT(O), RECE(IVED). With this to go on, we must choose column 11 as the next one and then in order, columns 8, 10, 7, 12, 9. But note that the order 11, 8, 10, 7, 12, 9, is the same as the order 5, 2, 4, 1, 6, 3. The message was written in twelve columns and the columns have been transposed in that order. We may, although it is entirely unnecessary, speculate on the key word used. It was probably

M E X I C O 4 2 6 3 1 5

meaning that the 4th column of the plain text was transferred in enciphering so it became our 1st, the 2d column remained the 2d; the 6th column became our 3d, etc.

Actually, this cipher was solved because the word VILLA was suspected and all the necessary letters were found in line six of the arrangement in twelve columns. The order 1, 6, 3, 11, 8 was tried and gave this result.

1 6 3 11 8

H T I N G C I N I T Y A H A S E W E D B L S O B R V I L L A N G T O A E C E I V F I F T E

The remainder of the solution followed the lines already laid down and, naturally, offered no difficulties, in view of the large number of connected syllables available.

Case 2-b.

Message

SLCOF WEETN EBRDO ORVYM FFEDI NMTEC ROIAR PERHO ESETS RFBHL TENAH OPTAU SOMTL RTETT ASCBH NIODC RENEN AAPRD LACYE ECIIE SGUFN

This is a transposition cipher, English text, and contains 105 letters. The factors of 105 are 5 × 3 × 7 so that we must investigate the following rectangles; 5 × 21, 15 × 7, three of 5 × 7, five of 3 × 7 and seven of 5 × 3.

21 × 5 Vowels S L C O F W E E T N E B R D O O R V Y M F 6 F E D I N M T E C R O I A R P E R H O E S 9 E T S R F B H L T E N A H O P T A U S O M 7 T L R T E T T A S C B H N I O D C R E N E 6 N A A P R D L A C Y E E C I I E S G U F N 9 Vowels 1 2 1 2 1 0 1 4 0 1 3 3 1 3 3 3 1 1 3 2 1

The vowel count of the columns of the rectangle 5 × 21 is very satisfactory. Let us consider it as three blocks of 5 × 7 each, since we must do this ultimately, and make a vowel count of columns for these blocks.

5 × 21 Vowels S L C O F 1 W E E T N 2 E B R D O 2 O R V Y M 1 F F E D I 2 N M T E C 1 R O I A R 3 P E R H O 2 E S E T S 2 R F B H L 0 T E N A H 2 O P T A U 3 S O M T L 1 R T E T T 1 A S C B H 1 N I O D C 2 R E N E N 2 A A P R D 2 L A C Y E 2 E C I I E 4 S G U F N 1 Vowels 7 9 8 7 6

Column

1 2 3 4 5 Vowels, 1st block 2 2 3 2 2 Vowels, 2d block 2 3 2 2 2 Vowels, 3d block 3 4 3 2 2

This is also excellent, so we will try three blocks 5 × 7 and see if rearrangement of horizontal lines will give results reading the columns vertically.

1 S L C O F P E R H O A S C B H 2 W E E T N E S E T S N I O D C 3 E B R D O R F B H L R E N E N 4 O R V Y M T E N A H A A P R D 5 F F E D I O P T A U L A C Y E 6 N M T E C S O M T L E C I I E 7 R O I A R R T E T T S G U F N

Among other combinations are:

3 E B R D O R F B H L R E N E N 2 W E E T N E S E T S N I O D C 1 S L C O F P E R H O A S C B H

5 F F E D I O P T A U L A C Y E 7 R O I A R R T E T T S G U F N

The addition of line 6 above line 3 and line 4 below line 7 will complete this cipher. The successive columns should be read downward.

Case 2-c. In this case, both lines and columns are rearranged by means of a key word or key words. The method of solution is the same as Case 2-a and 2-b except that the lines must be rearranged after the columns have been correctly arranged, or in some cases, vice versa. This cipher is not infrequently met with because it seems to offer safety by use of two key words and by the great but only apparent complexity of the method.

Message

WVGAE EGENL TFTOH TEIEF RBTSE INENG ONWRM GXIXN GOITN ROMRO ESPAL HNEAC UDNNH DERME

This is a transposition cipher, English text and the number of letters, 70, leads us to try rectangles of 10 × 7 and 7 × 10.

Vowels Vowels

W V G A E E G E N L 4 W V G A E E G 3 T F T O H T E I E F 3 E N L T F T O 2 R B T S E I N E N G 3 H T E I E F R 3 O N W R M G X I X N 2 B T S E I N E 3 G O I T N R O M R O 4 N G O N W R M 1 E S P A L H N E A C 4 G X I X N G O 2 U D N N H D E R M E 3 I T N R O M R 2 O E S P A L H 3 N E A C U D N 3 N H D E R M E 2

The first form looks the more likely from the vowel count. We proceed to number the columns and lines and try rearrangement of columns so as to obtain possible letter combinations from every line.

1 2 3 4 5 6 7 8 9 10

1 W V G A E E G E N L 2 T F T O H T E I E F 3 R B T S E I N E N G 4 O N W R M G X I X N 5 G O I T N R O M R O 6 E S P A L H N E A C 7 U D N N H D E R M E

Among other combinations we have these:

3 5 1 4 2 8 10 6 9 7

1 G E W A V E L E N G 2 T H T O F I F T E E 3 T E R S B E G I N N 4 W M O R N I N G X X 5 I N G T O M O R R O 6 P L E A S E C H A N 7 N H U N D R E D M E

A very casual inspection of the lines shows that they should be rearranged in order 6, 1, 2, 7, 3, 5, 4, as follows:

3 5 1 4 2 8 10 6 9 7

6 P L E A S E C H A N 1 G E W A V E L E N G 2 T H T O F I F T E E 7 N H U N D R E D M E 3 T E R S B E G I N N 5 I N G T O M O R R O 4 W M O R N I N G X X

Although of no particular importance, it may be stated that the column key in this case was GRAND and the line key was CENTRAL, both used as in enciphering Case 2-a.

Case 3. Route ciphers. In this case, whole words of the message are transposed according to some of the methods of Case 1 or 2 or their equivalents. The route cipher is little used at present. Its development and use during the Civil War was caused by the inability of the telegraphers of that day to handle regular cipher matter correctly and rapidly. It was, even in those days, frankly only a delaying cipher and, to be of any value, had to be filled with meaningless words to conceal the message proper. An example from the Signal Book will suffice to show the general character of route ciphers. To one familiar with monoliteral transposition ciphers, even the best of route ciphers offers but little difficulty.

"To encipher the message 'MOVE DAYLIGHT. ENEMY APPROACHING FROM NORTH. PRISONERS SAY STRENGTH ONE HUNDRED THOUSAND. MEET HIM AS PLANNED.' arrange as follows:

MOVE STRENGTH PLANNED SAY DAYLIGHT ONE AS PRISONERS ENEMY HUNDRED HIM NORTH APPROACHING THOUSAND MEET FROM

Here the route is down the first column, up the fourth, down the second and up the third."

This cipher was often complicated by the introduction of nulls for every fifth word. Thus the above message might be sent:

MOVE STRENGTH PLANNED SAY NEVER DAYLIGHT ONE AS PRISONERS LEAVING ENEMY HUNDRED HIM NORTH UNCHANGED APPROACHING THOUSAND MEET FROM COME.

The words in italics are nulls and not a part of the message and the receiver eliminates them before arranging his message in columns to get the sense of it.

As an additional complication, it was customary for each correspondent to have a dictionary or code in which the names of all prominent generals and places and many of the prominent verbs,--as to march, to sail, to encamp, to attack, to retreat,--were represented by other words.

A route cipher using the code words of the War Department code might have some advantages over the method of enciphering code messages as prescribed in that Code.

General Remarks on Transposition Ciphers

It is the consensus of opinion of experts that the transposition cipher is not the best one for military purposes. It does not fulfill the first, second, and third of Kerckhoffs' requirements as to indecipherability, safety when apparatus and method fall into the hands of the enemy, and dependability on a readily changeable key word.

However, transposition ciphers are often encountered. They are favorites with those who find the substitution ciphers too difficult and too tedious to handle and who believe that their transposition methods are either absolutely indecipherable or sufficiently so for the purpose of concealing the text of a message for the time being. They seem to be particularly popular with secret agents and spies, presumably because special apparatus is rarely necessary in enciphering and deciphering.

Although the number of transposition methods is legion, they can practically all be considered under one of the three cases already discussed. It is surprising how often transposition ciphers prepared by complicated rules, will, on analysis, be seen to be very simple.

To be successful in solving transposition ciphers, one should constantly practice reading backward and up and down columns, so that the common combinations of letters are as quickly identified when seen thus as when encountered in straight text. Combinations like EHT, LLIW, ROF, DNA, etc., should be appreciated immediately as common words written backward.

A study of the table of frequency of digraphs or pairs is also excellent practice and such a table should be at hand when a transposition cipher is under consideration. It assists greatly if Case 2 be encountered and is of considerable use in solving Case 1.

The solution of route ciphers is necessarily one of try and fit, with the knowledge that such ciphers usually are read up and down columns. It is not believed that route ciphers will often be met with at the present day.

Chapter VI

Examination of Substitution Ciphers

When an unknown cipher has been put into the substitution class by the methods already described we may proceed to decide on the variety of substitution cipher which has been used.

There are a few purely mechanical ways of solving some of the simple cases of substitution ciphers but as a general rule some or all of the following determinations must be made:

1. By preparation of a frequency table for the message we determine whether one or more substitution alphabets have been used and, if one only has been used, this table leads to the solution.

2. By certain rules we determine how many alphabets have been used, if there are more than one, and then isolate and analyze each alphabet by means of a frequency table.

3. If the two preceding steps give no results we have to deal with a cipher with a running key, a cipher of the Playfair type, or a cipher where two or more characters are substituted for each letter of the text. Some special cases under this third head will be given but, in general, military ciphers of the substitution class will usually be found to come under the first two heads, on account of the time and care required in the preparation and deciphering of messages by the last named methods and the necessity, in many cases, of using complicated machines for these processes.

Case 4-a.

Message

Obqfo Bpbrp Qbaml Obhif Pilfq Fjbox Oflnr Bixoz El

From the recurrence of B, F and O, we may conclude that a single substitution alphabet was used for this message. If so and if the alphabet runs in the same order and direction as the regular alphabet, the simplest way to discover the meaning of the message is to take the first two words and write alphabets under each letter as follows, until some line makes sense:

O B Q F O B P B R P P C R G P C Q C S Q Q D S H Q D R D T R R E T I R E S E U S

The word RETIRESE occurs in the fourth line, and, if the whole message be handled in this way we find the rest of the fourth line to read USTED POR EL MISMO ITINERARIO QUE MARCHO. The message was enciphered using an alphabet where A = X, B = Y, C = Z, D = A, etc. noting that as this message is in Spanish the letters K and W do not appear in the alphabet.

Case 4-b.

Message

Hujzh Uiupn Ozyts Vqxmi Smomx Mqhud Umrei Sesju Ag

This is a message in Spanish. We will handle it as in case 4-a, setting down the whole message.

HUJZHUIU PNOZY TSV QX MISMO MXMQHUDUMR EIS ESJUAG IVLAIVJV QOPAZ UTX RY A=A NYNRIVEVNS FJT FTLVBH JXMBJXLX RPQBA VUY SZ OZOSJXFXOT GLU GUMXCI LYNCLYMY SQRCB XVZ TA PAPTLYGYPU HMV HVNYDJ MZODMZNZ TRSDC YXA UB QBQUMZHZQV INX IXOZEL NAPENAOA USTED ZYB VC RCRVNAIARX JOY JYPAFM OBQFOBPB A=U AZC XD SDSXOBJBSY LPZ LZQBGN PCRGPCQC BAD YE TETYPCLCTZ MQA MARCHO QDSHQDRD CBE ZF UFUZQDMDUA NRB A=S RETIRESE DCF AG VGVARENEVB OSC A=Q EDG BH XHXBSFOFXC PTD FEH CI YIYCTGPGYD QUE GFI DJ ZJZDUHQHZE A=O HGJ EL ALAEVIRIAF IHL A=M BMBFXJSJBG JIM CNCGYLTLCH LJN DODHZMUMDI MLO EPEIANVNEJ NMP FQFJBOXOFL ONQ GRGLCPYPGM POR HSHMDQZQHN A=E ITINERARIO A=D

Here each word of the message comes out on a different line, and noting in each case the letter corresponding to A, we have the word QUEMADOS which is the key. The cipher alphabet changed with each word of the message.

A variation of this case is where the cipher alphabet changes according to a key word but the change comes every five letters or every ten letters of the message instead of every word. The text of the message can be picked up in this case with a little study.

Note in using case 4 that if we are deciphering a Spanish message we use the alphabet without K or W as a rule, altho if the letters K or W appear in the cipher it is evidence that the regular English alphabet is used.

Case 5-a.

Message

DNWLW MXYQJ ANRSA RLPTE CABCQ RLNEC LMIWL XZQTT QIWRY ZWNSM BKNWR YMAPL ASDAN

This message contains K and W and therefore we expect the English alphabet to be used. The frequency of occurrence of A, L, N, R and W has lead us to examine it under case 4 but without result. Let us set down the first two words and decipher them with a cipher disk set A to A and then proceed as in case 4.

Cipher message DNWLWMXYQJ Deciphered A to A XNEPEODCKR B YOFQFPEDLS C ZPGRGQFEMT D AQHSHRGFNU E BRITISHGOV

The message is thus found to be enciphered with a cipher disk set A to E and the text is: BRITISH GOVERNMENT PLACED CONTRACTS WITH FOLLOWING FIRMS DURING SEPTEMBER.

Case 5-b.

Same as case 4-b except that the cipher message must be deciphered by means of a cipher disk set A to A before proceeding to make up the columns of alphabets. The words of the deciphered message will be found on separate lines, the lines being indicated as a rule by a key word which can be determined as in case 4-b.

The question of alphabetic frequency has already been discussed in considering the mechanism of language. It is a convenient thing to put the frequency tables in a graphic form and to use a similar graphic form in comparing unknown alphabets with the standard frequency tables. For instance the standard Spanish frequency table put in graphic form is here presented in order to compare with it the frequency table for the message discussed in case 4-a.

Standard Spanish Table for Message frequency table Case 4-a

A 111111111111111111111111111 27 A 1 1 B 11 2 B 1111111 7 C 111111111 9 C D 1111111111 10 D E 1111111111111111111111111111 28 E 1 1 F 11 2 F 11111 5 G 111 3 G H 11 2 H 1 1 I 111111111111 12 I 111 3 J 1 1 J 1 1 L 1111111111 10 L 111 3 M 111111 6 M 1 1 N 111111111111 12 N 1 1 O 1111111111111111 16 O 111111 6 P 11111 5 P 111 3 Q 11 2 Q 111 3 R 111111111111111 15 R 11 2 S 11111111111111 14 S T 11111111 8 T U 1111111 7 U V 11 2 V X X 11 2 Y 11 2 Y Z 1 1 Z 1 1

Our first assumption might be that B = A and F = E but it is evident at once that in that case, S, T, U and V (equal to R, S, T and U) do not occur and a message even this short without R, S, T or U is practically impossible. By trying B = E we find that the two tables agree in a general way very well and this is all that can be expected with such a short message. The longer the message the nearer would its frequency table agree with the standard table. Note that if a cipher disk has been used, the alphabet runs the other way and we must count upward in working with a graphic table. Note also that if, in a fairly long message, it is impossible to coördinate the graphic table, reading either up or down, with the standard table and yet some letters occur much more frequently than others and some do not occur at all, we have a mixed alphabet to deal with. The example chosen for case 6-a is of this character. An examination of the frequency table given under that case shows that it bears no graphic resemblance to the standard table. However, as will be seen in case 7-b, the preparation of graphic tables enables us to state definitely that the same order of letters is followed in each of a number of mixed alphabets.

General Remarks

Any substitution cipher, enciphered by a single alphabet composed of letters, figures or conventional signs, can be handled by the methods of case 6. For example, the messages under case 4-a and 5-a are easily solved by these methods. But note that the messages under case 4-b and 5-b cannot so be solved because several alphabets are used. We will see later that there are methods of segregating the different alphabets in some cases where several are used and then each of the alphabets is to be handled as below.

Case 6-a.

Message

QDBYP BXHYS OXPCP YSHCS EDRBS ZPTPB BSCSB PSHSZ AJHCD OSEXV HPODA PBPSZ BSVXY XSHCD

This message was received from a source which makes us sure it is in Spanish. The occurrence of B, H, P and S has tempted us to try the first two words as in case 4 and 5 but without result. We now prepare a frequency table, noting at the same time the preceding and following letter. This latter proceeding takes little longer than the preparation of an ordinary frequency table and gives most valuable information.

Frequency Table

Prefix Suffix

A 11 2 ZD JP B 11111111 8 DPRPBSPZ YXSBSPPS C 11111 5 PHSHH PSSDD D 11111 5 QECOC BROA E 11 2 SS DX F G H 111111 6 XSSJVS YCSCPC I J 1 1 A H L M N O 111 3 SDP XSD P 111111111 9 YXCZTBHAB BCYTBSOBS Q 1 1 D R 1 1 D B S 111111111111 12 YYCBBCPHOPBX OHEZCBHZEZVH T 1 1 P P U V 11 2 XS HX X 11111 5 BOEVY HPVYS Y 1111 4 BHPX PSSX Z 111 3 SSS PAB

It is clear from an examination of this table that we have to deal with a single alphabet but one in which the letters do not occur in their regular order.

We may assume that P and S are probably A and E, both on account of the frequency with which they occur and the variety of their prefixes and suffixes. If this is so, then B and H, are probably consonants and may represent R and N respectively. D and X are then vowels by the same method of analysis. Noting that HC occurs three times and taking H as N we conclude that C is probably T. Substitute these values in the last three words of the message because the letters assumed occur rather frequently there.