Manual for the Solution of Military Ciphers/Source: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1:
{{work}}
{{cleanup|The footnotes need to be fixed.}}
 
--<!--
This HTML file has been automatically generated from an XML source on 2015-05-03T19:06:07Z.HTML: <meta name="DC:Subject" content="Cryptography">The Project Gutenberg EBook of Manual for the Solution of Military Ciphers, by
Parker Hitt
Line 32 ⟶ 33:
Gutenberg (This file was produced from images generously
made available by The Internet Archive/American Libraries.)
-->
 
 
 
 
 
 
 
[[Image:new-cover.jpgImage1.png|top|alt="Newly Designed Front Cover."]]
 
[[Image:titlepage.pngImage2.png|top|alt="Original Title Page."]]
 
<div style="text-align:center;">MANUAL FOR THE SOLUTION OF MILITARY CIPHERS</div>
 
<div style="text-align:center;">BYPARKERBY PARKER HITT'' Captain of Infantry, U. S. A.''</div>
 
<div style="text-align:center;">PRESS OFTHEOF THE ARMY SERVICE SCHOOLSFortSCHOOLS Fort Leavenworth, Kansas1916Kansas 1916</div>
 
<span style="color:#aaaaaa;">[</span>[[#xd21e150|v]]<span style="color:#aaaaaa;">]</span></div>
 
MANUAL FOR THE SOLUTIONOF MILITARY CIPHERS
 
BYPARKER HITTCaptain of Infantry, United States Army
 
== Introduction ==
Line 61 ⟶ 47:
It is necessary therefore to fall back on ciphers for general military work if secrecy of communication is to be fairly well assured. It may as well be stated here that no practicable military cipher is mathematically indecipherable if intercepted; the most that can be expected is to delay for a longer or shorter time the deciphering of the message by the interceptor.
 
The capture of messengers is no longer the only means available to the enemy for gaining information as to the plans of a commander. All radio messages sent out can be copied at hostile stations within radio range. If the enemy can get a fine wire within one hundred feet of a buzzer line or within thirty feet of a telegraph line, the message can be copied by induction. Messages passing over commercial telegraph lines, and even over military lines, can be copied by spies in the offices. On telegraph lines of a permanent nature it is possible to install high speed automatic sending and receiving machines and thus prevent surreptitious copying of messages, but nothing but a secure cipher will serve with other means of communication. <big><span style="color:#aaaaaa;">[</span>[[#xd21e171|vi]]<span style="color:#aaaaaa;">]</span></div></big>
 
It is not alone the body of the message which should be in cipher. It is equally important that, during transmission, the preamble, place from, date, address and signature be enciphered; but this should be done by the sending operator and these parts must, of course, be deciphered by the receiving operator before delivery. A special operators’ cipher should be used for this purpose but it is difficult to prescribe one that would be simple enough for the average operator, fast and yet reasonably safe. Some form of rotary cipher machine would seem to be best suited for this special purpose.
 
It is unnecessary to point out that a cipher which can be deciphered by the enemy in a few hours is worse than useless. It requires a surprisingly l<div style="text-align:right;"><div style="text-align:right;">onglong time to encipher and decipher a message, using even the simplest kind of cipher, and errors in transmission of cipher matter by wire or radio are unfortunately too common.
 
Kerckhoffs has stated that a military cipher should fulfill the following requirements:
 
Kerckhoffs has stated that a military cipher should fulfill the following requirements:* 1st. The system should be materially, if not mathematically, indecipherable.
* 2d. It should cause no inconvenience if the apparatus and methods fall into the hands of the enemy.
* 3d. The key should be such that it could be communicated and remembered without the necessity of written notes and should be changeable at the will of the correspondents.
Line 78 ⟶ 66:
A brief consideration of these six conditions must lead to the conclusion that there is no perfect military cipher. The first requirement is the one most often overlooked by those prescribing the use of any given cipher and, even if not overlooked, the indecipherability of any cipher likely to be used for military purposes is usually vastly overestimated by those prescribing the use of it.
 
If this were not true, there would have been neither material for, nor purpose in, the preparation of these notes. Of the hundreds of actual cipher messages examined by the writer, at least nine-tenths have been solved by the methods to be set forth. These messages were prepared by the methods in use by the United States Army, the various Mexican <span style="color:#aaaaaa;">[</span>[[#xd21e196|vii]]<span style="color:#aaaaaa;">]</span>armies and their secret agents, and by other methods in common use. The usual failure has been with very short messages. Foreign works consulted lead to the belief that many European powers have used, for military purposes, cipher methods which vary from an extreme simplicity to a complexity which is more apparent than real. What effect recent events have had on this matter remains to be seen. It is enough that the cipher experts of practically every European country have appealed to the military authorities of their respective countries time and again to do away with these useless ciphers and to adopt something which offers more security, even at the expense of other considerations.</div>
 
The cipher of the amateur, or of the non-expert who makes one up for some special purpose, is almost sure to fall into one of the classes whose solution is an easy matter. The human mind works along the same lines, in spite of an attempt at originality on the part of the individual, and this is particularly true of cipher work because there are so few sources of information available. In other words, the average man, when he sits down to evolve a cipher, has nothing to improve upon; he invents and there is no one to tell him that his invention is, in principle, hundreds of years old. The ciphers of the Abbé Tritheme, 1499, are the basis of most of the modern substitution ciphers.
Line 84 ⟶ 72:
In view of these facts, no message should be considered indecipherable. Very short messages are often very difficult and may easily be entirely beyond the possibility of analysis and solution, but it is surprising what can be done, at times, with a message of only a few words.
 
In the event of active operations, cipher experts will be in demand at once. Like all other experts, the cipher expert is not born or made in a day; and it is only constant work with ciphers, combined with a thorough knowledge of their underlying principles, that will make one worthy of the name. <span style="color:#aaaaaa;">[</span>[[#pb1|1]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter I ==
 
=== Equipment for Cipher Work ===
 
<div style="text-align:right;color:#ffffff;">S</div>uccessSuccess in dealing with unknown ciphers is measured by these four things in the order named; perseverance, careful methods of analysis, intuition, luck. The ability at least to read the language of the original text is very desirable but not essential.
 
Cipher work will have little permanent attraction for one who expects results at once, without labor, for there is a vast amount of purely routine labor in the preparation of frequency tables, the rearrangement of ciphers for examination, and the trial and fitting of letter to letter before the message begins to appear.
Line 96 ⟶ 84:
The methods of analysis given in these notes cover only the simpler varieties of cipher and it is, of course, impossible to enumerate all the varieties of these. It is believed that the methods laid down are sound and several years of successful work along this line would seem to confirm this belief. For more advanced work there is no recourse but to study the European authorities whose writings are mostly in French, German, and Italian and, unfortunately, are rarely available in English translations.
 
Under intuition must be included a knowledge of the general situation and, if possible, the special situation which led to the sending of the cipher message. The knowledge or guess that a certain cipher message contains a particular word, often leads to its solution. <span style="color:#aaaaaa;">[</span>[[#pb2|2]]<span style="color:#aaaaaa;">]</span></div>
 
As to luck, there is the old miner’s proverb: “Gold is where you find it.”
Line 104 ⟶ 92:
Cipher work requires concentration and quiet and often must proceed without regard to hours. The office should be chosen with these points in mind. A clerical force is desirable and even necessary if there is much work to do. The clerk or clerks can soon be trained to do the routine part of the analysis.
 
It is believed that each Field Army should have such an office where all ciphers intercepted by forces under command of the Field Army Commander should be sent at once for examination. This work naturally falls to the Intelligence section of the General Staff at this headquarters. A special radio station, with receiving instruments only, should be an adjunct to this office and its function should be to copy all hostile radio messages whether in cipher or plain text. Such a radio station requires but a small antenna; one of the pack set type or any amateur’s antenna is sufficient, and the station instruments can be easily carried in a suit case. Three thoroughly competent operators should be <span style="color:#aaaaaa;">[</span>[[#pb3|3]]<span style="color:#aaaaaa;">]</span>provided, so that the station can be “listening in” during the entire twenty-four hours.</div>
 
The office should be provided with tables of frequency of the language of the enemy, covering single letters and digraphs; a dictionary and grammar of that language; copies of the War Department Code, Western Union Code and any other available ones; types of apparatus or, at least, data on apparatus and cipher methods in use by the enemy; and a safe filing cabinet and card index for filing messages examined. A typewriter is also desirable.
Line 110 ⟶ 98:
The office work on a cipher under examination should be done on paper of a standard and uniform size. Printed forms containing twenty-six ruled lines and a vertical alphabet are convenient and save time in preparation of frequency tables. Any new cipher methods which are found to be in use by the enemy should, when solved, be communicated to all similar offices in the Army for their information.
 
Unless an enemy were exceedingly vigilant and changed keys and methods frequently, such an office would, in a few days, be in a position to disclose completely all intercepted cipher communications of the enemy with practically no delay. <span style="color:#aaaaaa;">[</span>[[#pb4|4]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter II ==
 
=== Principles of Mechanism of a Written Language ===
 
<div style="text-align:right;color:#ffffff;">W</div>ithWith a few exceptions, notably Chinese, all modern languages are constructed of words which in turn are formed from letters. In any given language the number of letters, and their conventional order is fixed. Thus English is written with 26 letters and their conventional order is A, B, C, D, E, etc. Some letters are used very frequently and others rarely. In fact, if ten thousand consecutive letters of a text be counted and the frequency of occurrence of each letter be noted, the numbers found will be practically identical with those obtained from any other text of ten thousand letters in the same language. The relative proportion of occurrence of the various letters will also hold approximately for even very short texts.
 
Such a count of a large number of letters, when it is put in the form of a table, is known as a frequency table. Every language has its own distinctive frequency table and, for any given language, the frequency table is almost as fixed as the alphabet. There are minor differences in frequency tables prepared from texts on special subjects. For example, if the text be newspaper matter, the frequency table will differ slightly from one prepared from military orders and will also differ slightly from one prepared from telegraph messages. But these differences are very slight as compared with the differences between the frequency tables of two different languages.
 
Again there is a fixed ratio of occurrence of <span style="color:#aaaaaa;">[</span>[[#pb5|5]]<span style="color:#aaaaaa;">]</span>every letter with every other for any language and this, put in table form, constitutes a table of frequency of digraphs. In the same way a table of trigraphs, showing the ratio of occurrence of any three letters in sequence, could be prepared, but such a table would be very extensive and a count of the more common three letter combinations is usually used.</div>
 
Other tables, such as frequency of initial and final letters of words, might be of value but the common practice is to put cipher text into groups of five or ten letters each and eliminate word forms. This is almost a necessity in telegraphic and radio communication to enable the receiving operator to check correct receipt of a message. He must get five letters, neither more nor less, per word or he is sure a mistake has been made. There is little difficulty, as a rule, in restoring word forms in the deciphered message.
Line 128 ⟶ 116:
=== Data for Solution of Ciphers in English ===
 
Table I.—Normal frequency table. Frequency for ten thousand letters and for two hundred letters. This latter is put in graphic form and is necessarily an approximation. Taken from military orders and reports, English text. <span style="color:#aaaaaa;">[</span>[[#pb6|6]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 274 ⟶ 262:
Order of letters: E T O A N I R S H D L U C M P F Y W G B V K J X Z Q.
 
Table II.—Frequency table for telegraph messages, English text. This table varies slightly from the standard frequency table because the common word “the” is rarely used in telegrams and there is a tendency to use longer and less common words in preparing telegraph messages. <span style="color:#aaaaaa;">[</span>[[#pb7|7]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 418 ⟶ 406:
Orders of letters: E O A N I R S T D L H U C M P Y F G W B V K X J Q Z.
 
Table III.—Table of frequency of digraphs, duals or pairs (English). This table was prepared from 20,000 letters, but the figures shown are on the basis of 2,000 letters. For this reason they are, to a certain extent, approximate; that is, merely because no figures are shown for certain combinations, we should not assume that such combinations never occur but rather that they are rare. The letters in the horizontal line at the top and bottom are the leading letters; those in the vertical columns at the sides are the following letters. Thus in two thousand letters we may expect to find AH once and HA twenty-six times. <span style="color:#aaaaaa;">[</span>[[#pb8|8]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 1,325 ⟶ 1,313:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb9|9]]<span style="color:#aaaaaa;">]</span></div>
 
Table VI.—Table of frequency of occurrence of letters as initials and finals of English words. Based on a count of 4,000 words; this table gives the figures for an average 100 words and is necessarily an approximation, like Table III. English words are derived from so many sources that it is not impossible for any letter to occur as an initial or final of a word, although Q, X and Z are rare as initials and B, I, J, Q, V, X and Z are rare as finals.
Line 1,445 ⟶ 1,433:
A B C CH D E F G H I J L LLM N Ñ O P Q R RR S T U V X Y Z
 
while the exact sense often depends upon the use of accents over the vowels. However, in cipher work it is exceedingly inconvenient to use the permanent digraphs, CH, LL and RR and they do not appear as such in any specimens of Spanish or Mexican cipher <span style="color:#aaaaaa;">[</span>[[#pb10|10]]<span style="color:#aaaaaa;">]</span>examined. Accented vowels and Ñ are also not found and we may, in general, say that a cipher whose text is Spanish will be prepared with the following alphabet:</div>
 
A B C D E F G H I J L M N O P Q R S T U V X Y Z
Line 1,457 ⟶ 1,445:
In Spanish, the letter Q is always followed by U and the U is always followed by one of the other vowels, A, E, I or O. As QUE or QUI occurs not infrequently in Spanish text, particularly in telegraphic correspondence, it is well worth noting that, if a Q occurs in a transposition cipher, we must connect it with U and another vowel. The clue to several transposition ciphers has been found from this simple relation.
 
Table VII.—Normal frequency table for military orders and reports, calculated on a basis of 10,000 letters of Spanish text. The graphic form is on a basis of 200 letters. <span style="color:#aaaaaa;">[</span>[[#pb11|11]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 1,593 ⟶ 1,581:
E A O R S N I D L C T U M P G Y (BH) F Q V Z J X.
 
Table VIII.—Table of frequency of digraphs, duals or pairs, Spanish text. Like Table III, this table is on the basis of 2,000 letters although prepared from a count of 20,000 letters. For this reason it is, to a certain extent an approximation; that is, merely because no figures are shown for certain combinations, we should not assume that such combinations never occur but rather that they are rare. The letters in the horizontal lines at the top and bottom are the leading letters; those in the vertical columns at the sides are the following letters. Thus, in two thousand letters, we may expect to find AI twice and IA twenty-three times. <span style="color:#aaaaaa;">[</span>[[#pb12|12]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 2,377 ⟶ 2,365:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb13|13]]<span style="color:#aaaaaa;">]</span></div>
 
=== Alphabetic Frequency Tables ===
 
==== (Truesdell) ====
 
Frequency of occurrence in 1,000 letters of text:
Line 2,759 ⟶ 2,747:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb14|14]]<span style="color:#aaaaaa;">]</span></div>
 
=== Graphic Frequency Tables ===
Line 2,973 ⟶ 2,961:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb15|15]]<span style="color:#aaaaaa;">]</span></div>
 
''German''
Line 3,187 ⟶ 3,175:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb16|16]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 3,194 ⟶ 3,181:
== Chapter III ==
 
=== Technique of Cipher Examination ===
 
<div style="text-align:right;color:#ffffff;">I</div>nIn time of active operations it is important that captured or intercepted cipher messages reach the examining office with the least possible delay. The text of messages, captured at a distance from the examining office, should be sent to the office by telegraph or telephone, the original messages being forwarded to the office as soon thereafter as possible.
 
The preamble, “place from,” date, address and signature, give most important clues as to the language of the cipher, the cipher method probably used, and even the subject matter of the message. If the whole of a telegraphic or radio message is in cipher, it is highly probable that the preamble, “place from,” etc., are in an operators’ cipher and are distinct from the body of the message. As these operators’ ciphers are necessarily simple, an attempt should always be made to discover, by methods of analysis to be set forth later, the exact extent of the operator’s cipher and then to decipher the parts of the messages enciphered with it.
 
In military messages, we almost invariably find the language of the text to be that of the nation to which the military force belongs. The language of the text of the message of secret agents is, however, another matter and, in dealing with such messages, we should use all available evidence, both external and internal, before deciding finally on the language used. Whenever a frequency table can be prepared, <span style="color:#aaaaaa;">[</span>[[#pb17|17]]<span style="color:#aaaaaa;">]</span>such a table will give the best evidence for this purpose.</div>
 
All work in enciphering and deciphering messages and in copying ciphers should be done with capital letters. There is much less chance of error when working with capitals and, with little practice, it is just about as fast. An additional safeguard is to use black ink or pencil for the plain text and colored ink or pencil for the cipher. A separate color may be used for the key when necessary.
Line 3,208 ⟶ 3,195:
The first column of this blank should be filled out from data furnished by the officer obtaining the cipher from the enemy. A general order, emphasizing the importance of promptly forwarding captured or intercepted ciphers to an examining office, could specify that a brief report embodying this data should be forwarded with each cipher.
 
The second column of the blank should be filled out progressively as the work proceeds. The office number should be a serial one, the first cipher examined being No. 1. The date and hour of receipt at examining office will be a check as to the time required to transmit it from place of capture. The spaces “From,” “At,” “To,” “At,” “Date,” are for <span style="color:#aaaaaa;">[</span>[[#pb18|18]]<span style="color:#aaaaaa;">]</span>the information concerning sender and addressee of the cipher and are to be obtained from the message. In case an operators’ cipher has been used, these parts of the message will have to be deciphered before the blanks can be filled in.</div>
 
 
Line 3,429 ⟶ 3,416:
|-
|}
The probable language of the text is assumed from the preceding data and, if necessary, from <span style="color:#aaaaaa;">[</span>[[#pb19|19]]<span style="color:#aaaaaa;">]</span>internal evidence. Thus a cipher from a Mexican source and not containing K or W is probably in Spanish.</div>
 
The class and case are determined by the rules laid down later. The space for remarks is to permit notation of any special features. When the solution is completed, the date and hour are noted, the language of text and key (if determined) are entered and a type number, to identify it with other ciphers prepared by the same method (but not necessarily the same key), is given to it. The file number is for convenience in filing and in preparation of a card index.
Line 3,435 ⟶ 3,422:
The process of examination in an office with one examiner, one stenographer and one clerk, might be as follows: On receipt of a captured cipher with accompanying report, the stenographer makes four copies of the cipher on the typewriter. The clerk and stenographer then check the work. The stenographer then proceeds to fill out the first column and first two lines of the second column of the record blank from the report of the capturing officer, keeping the original cipher and two copies with the record. He may also fill out the first seven lines of the second column, if this data is on the captured cipher in plain text. In the meantime the clerk is counting and setting down the whole number of letters of the cipher and the occurrence of AEIOU, LNRST, and JKQXZ, while the examining officer is looking over the cipher for possible recurring groups of letters and underlining them when found.
 
This work being completed, the examining officer is in a position, ordinarily, to decide on the class of the cipher and he may have found something in his examination which will lead him to the case under the class. The clerk in this preliminary count should <span style="color:#aaaaaa;">[</span>[[#pb20|20]]<span style="color:#aaaaaa;">]</span>keep track of the total occurrence of each of the fifteen check letters and not of the three groups given above. This takes a little longer but when done, the data for fifteen letters of the alphabet for a frequency table is completed, leaving only eleven other letters, and in Spanish, but nine, to be counted, in case it is necessary to prepare a frequency table.</div>
 
If the examining officer decides the cipher to be of the transposition class, no further work with frequency tables is necessary. The clerk should proceed to count and set down the number of vowels in each line and column and the examining officer should look for any occurrence of the letter Q and try to connect it with U and another vowel. The stenographer may be set to work putting the cipher into rectangles of different dimensions. The clerk’s work gives data for possible rearrangement, for if the vowels are much out of proportion at any point, they must be connected with the proper proportion of consonants as a first step in rearrangement. Work with transposition ciphers must necessarily include much of the fit and try method. The details of this work are taken up later.
 
If a cipher seems to be a substitution cipher, the examining officer should look over the frequency of occurrence of each of the fifteen letters counted. If some letters (it is of no importance at present which ones) occur much more frequently than others and some occur rarely or not at all, we may safely decide on Case [[#c4|4]], [[#c5|5]] or [[#c6|6]] and let the clerk proceed to finish the frequency table for the message. On the other hand, if all the fifteen letters examined occur with somewhere near the same frequency—for example, the most common letter occurring not over three or four times as often as the least common letter—we may at once eliminate the first three cases <span style="color:#aaaaaa;">[</span>[[#pb21|21]]<span style="color:#aaaaaa;">]</span>and let the clerk proceed to examine the cipher for recurring pairs and groups, counting the intervening letters, so that the examining officer may decide whether [[#c7|Case 7]], or some more complicated case, should be chosen.</div>
 
If something more complicated than [[#c7|Case 7]] has been used and other ciphers are on hand awaiting examination, the cipher should go into the unsolved file to be worked on when other work permits, unless the contents of the cipher are believed to be very important. Every opportunity should be taken to clean up the unsolved file and, whenever a message is solved, the methods should be tried, if applicable, to everything remaining in the file.
Line 3,447 ⟶ 3,434:
When a cipher has been solved, the solution should be prepared in triplicate and given the serial number of the cipher. Any parts which are not clear, through errors in enciphering or in transmission, should be underlined or otherwise made conspicuous, so that the head of the Intelligence Section may note them and, possibly, from other sources, supply the deficiency.
 
One of the copies of the cipher and report of examination, with a copy of the solution, should be turned over at once to the head of the Intelligence Section or to the Chief of Staff. The other copies of the solution should be filed with the original cipher, the report of examination, and all work done on the cipher. <span style="color:#aaaaaa;">[</span>[[#pb22|22]]<span style="color:#aaaaaa;">]</span></div>
 
Periodically, say once a week or even daily at the beginning of active operations, there should be an interchange between all examining offices of solved messages involving new methods used by the enemy. All the examining offices will thus be kept in touch. It may also be possible to assign certain hostile radio stations to each examining office to prevent duplication of work. <span style="color:#aaaaaa;">[</span>[[#pb23|23]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter IV ==
 
=== Classes of Ciphers ===
 
<div style="text-align:right;color:#ffffff;">T</div>hereThere 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.
Line 3,461 ⟶ 3,448:
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. <span style="color:#aaaaaa;">[</span>[[#pb24|24]]<span style="color:#aaaaaa;">]</span></div>
 
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.
Line 3,475 ⟶ 3,462:
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 <span style="color:#aaaaaa;">[</span>[[#pb25|25]]<span style="color:#aaaaaa;">]</span>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.</div>
 
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. <span style="color:#aaaaaa;">[</span>[[#pb26|26]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter V ==
 
=== Examination of Transposition Ciphers ===
 
<div style="text-align:right;color:#ffffff;">A</div>fterAfter 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.
Line 3,545 ⟶ 3,532:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb27|27]]<span style="color:#aaaaaa;">]</span></div>
 
(''c'') ''Alternate Horizontal'':
Line 3,755 ⟶ 3,742:
|-
|}
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. <span style="color:#aaaaaa;">[</span>[[#pb28|28]]<span style="color:#aaaaaa;">]</span></div>
 
 
''Message''
Line 3,942 ⟶ 3,930:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb29|29]]<span style="color:#aaaaaa;">]</span></div>
 
Here an inspection shows this to be Case [[#c1f|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”.
Line 3,966 ⟶ 3,954:
and is sent:
 
OTLCV LYART RDHSI EAARH SEIEX <span style="color:#aaaaaa;">[</span>[[#pb30|30]]<span style="color:#aaaaaa;">]</span></div>
 
Case 1-j.
Line 4,023 ⟶ 4,011:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb31|31]]<span style="color:#aaaaaa;">]</span></div>
 
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.
Line 4,282 ⟶ 4,270:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb32|32]]<span style="color:#aaaaaa;">]</span></div>
 
These combinations appear among others:
Line 4,444 ⟶ 4,432:
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 <span style="color:#aaaaaa;">[</span>[[#pb33|33]]<span style="color:#aaaaaa;">]</span>twelve columns. The order 1, 6, 3, 11, 8 was tried and gave this result.</div>
{| style="border-spacing:0;width:1.1076in;"
|- style="border:none;padding:0.0194in;"
Line 4,890 ⟶ 4,878:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb34|34]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 5,032 ⟶ 5,020:
|-
|}
This is a transposition cipher, English text and <span style="color:#aaaaaa;">[</span>[[#pb35|35]]<span style="color:#aaaaaa;">]</span>the number of letters, 70, leads us to try rectangles of 10 × 7 and 7 × 10.</div>
 
 
Line 5,395 ⟶ 5,383:
|-
|}
Although of no particular importance, it may be stated that the column key in this case was GRAND <span style="color:#aaaaaa;">[</span>[[#pb36|36]]<span style="color:#aaaaaa;">]</span>and the line key was CENTRAL, both used as in enciphering [[#c2a|Case 2-a]].</div>
 
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.
Line 5,431 ⟶ 5,419:
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 <span style="color:#aaaaaa;">[</span>[[#pb37|37]]<span style="color:#aaaaaa;">]</span>the message and the receiver eliminates them before arranging his message in columns to get the sense of it.</div>
 
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.
Line 5,443 ⟶ 5,431:
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 <span style="color:#aaaaaa;">[</span>[[#pb38|38]]<span style="color:#aaaaaa;">]</span>by complicated rules, will, on analysis, be seen to be very simple.</div>
 
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.
Line 5,449 ⟶ 5,437:
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. <span style="color:#aaaaaa;">[</span>[[#pb39|39]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter VI ==
 
=== Examination of Substitution Ciphers ===
 
<div style="text-align:right;color:#ffffff;">W</div>henWhen 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:
Line 5,463 ⟶ 5,451:
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. <span style="color:#aaaaaa;">[</span>[[#pb40|40]]<span style="color:#aaaaaa;">]</span></div>Case 4-a.
 
''Message''
Line 5,483 ⟶ 5,471:
|-
|}
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. <span style="color:#aaaaaa;">[</span>[[#pb41|41]]<span style="color:#aaaaaa;">]</span></div>Case 4-b.
 
''Message''
Line 5,706 ⟶ 5,694:
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 <span style="color:#aaaaaa;">[</span>[[#pb42|42]]<span style="color:#aaaaaa;">]</span>the cipher it is evidence that the regular English alphabet is used.</div> Case 5-a.
 
''Message''
Line 5,745 ⟶ 5,733:
Same as [[#c4b|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 [[#c4b|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 <span style="color:#aaaaaa;">[</span>[[#pb43|43]]<span style="color:#aaaaaa;">]</span>form is here presented in order to compare with it the frequency table for the message discussed in [[#c4a|case 4-a]].</div>
 
 
Line 5,922 ⟶ 5,910:
|-
|}
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 [[#c6a|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 <span style="color:#aaaaaa;">[</span>[[#pb44|44]]<span style="color:#aaaaaa;">]</span>the standard table. However, as will be seen in [[#c7b|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.</div>
 
=== General Remarks ===
Line 5,932 ⟶ 5,920:
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. <span style="color:#aaaaaa;">[</span>[[#pb45|45]]<span style="color:#aaaaaa;">]</span></div>
 
'''Frequency Table'''
Line 6,114 ⟶ 6,102:
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 <span style="color:#aaaaaa;">[</span>[[#pb46|46]]<span style="color:#aaaaaa;">]</span>the message because the letters assumed occur rather frequently there.</div>
 
 
Line 6,250 ⟶ 6,238:
|-
|}
It is always well to attempt the reconstruction of the entire alphabet for use in case any more cipher messages written in it are received.—— <span style="color:#aaaaaa;">[</span>[[#pb47|47]]<span style="color:#aaaaaa;">]</span></div>Case 6-b.
 
''Message''
Line 6,418 ⟶ 6,406:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb48|48]]<span style="color:#aaaaaa;">]</span></div>
 
Superficially, this looks like a normal frequency table, but O is the dominant letter, followed by H, E, A, T, I, N, S, in the order named. It is certainly Case 6 if it is a substitution cipher at all.
Line 6,434 ⟶ 6,422:
|-
|}
Now take the group ENOUTHOMEAH which occurs twice. This becomes THE_IRE_TOR and if we substitute U=D and M=C we have THE DIRECTOR. Next the group (FTRR)BHAMOOUEA becomes (WILL) _ROCEEDTO and the context gives word with missing letter as PROCEED, from which B=P. Next the group (ENO) IZTIETASMOSEOHIEYOCK(FNOHO) becomes (THE)__I_TIO_CE_TER_T_EU_(WHERE) and the group (FTEN)EFAPHOSMNIZTIEAHL becomes (WITH)TWO_RE_CH__I_TOR_. <span style="color:#aaaaaa;">[</span>[[#pb49|49]]<span style="color:#aaaaaa;">]</span>The substitution of A for I, V for Z, N for S and F for P makes the latter group read (WITH TWO FRENCH AVIATORS and the former read (THE)AVIATION CENTER AT _EU_(WHERE).</div>
 
Now the word YOCK = (_EU_) is the name of a place, evidently. We find another group containing Y, viz: ENOSTSMAYBISD which becomes THENINCO_PANY so that evidently we should substitute M for Y. The other occurrence of Y (=M) is in the group EAYOEQISU which becomes TOMET_AND. A reasonable knowledge of geography gives us the words MEUX and METZ so that X should be substituted for K and Z for Q.
Line 6,457 ⟶ 6,445:
 
In the study of Mexican substitution ciphers, several alphabets have been found which are made up in a general way, like the one discussed in this case.
 
<span style="color:#aaaaaa;">[</span>[[#pb50|50]]<span style="color:#aaaaaa;">]</span></div>
 
Case 6-c.—It is a convenience in dealing with ciphers made up of numbers or conventional signs to substitute arbitrary letters for the numbers and signs. Suppose we have the message:
Line 6,580 ⟶ 6,566:
SEVEN HUNDRED MEN LEFT YESTERDAY FOR POINTS ON LOWER RIO GRANDE.
 
<span style="color:#aaaaaa;">[</span>[[#pb51|51]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter VII ==
 
<div style="text-align:right;color:#ffffff;">W</div>eWe will now consider the class of substitution ciphers where a number of alphabets are used, the number and choice of alphabets depending on a key word or equivalent and being used periodically throughout the message.
 
In this class belong the methods of Vigenere, Porta, Beaufort, St. Cyr, and many others. These methods date back several hundred years, but variations of them are constantly appearing as new ciphers. The Larrabee cipher, used for communication between government departments, is the Vigenere cipher of the 17th Century. The cipher disk method is practically the Vigenere cipher with reversed alphabets.
 
In using these ciphers, there is provided a number of different cipher alphabets, usually twenty-six, and each cipher alphabet is identified by a different letter or number. A key word or phrase (or key number) is agreed upon by the correspondents. The message to be enciphered is written in lines containing a number of letters which is a multiple of the number of letters of the key. The key is written as the first line. Then each column under a letter of the key is enciphered by the cipher alphabet pertaining to that letter of the key. For example, let us take the message, “All radio messages must hereafter be put in cipher,” with the key Grant, using the Vigenere cipher alphabets given below. Each of these alphabets is identified by the first or left hand letter which represents A of the text. We thus will <span style="color:#aaaaaa;">[</span>[[#pb52|52]]<span style="color:#aaaaaa;">]</span>use in turn the alphabets beginning with G, with R, with A, with N, and with T.</div>
 
 
Line 6,755 ⟶ 6,740:
This method of arranging the message into lines and columns and then enciphering whole columns with each cipher alphabet is much shorter than the method of handling each letter of the message separately. The chance of error is also greatly reduced.
 
All these cipher methods can be operated by means of squares containing the various alphabets, cipher disks or arrangements of fixed and sliding alphabets. For example, this was the original cipher of Vigenere: <span style="color:#aaaaaa;">[</span>[[#pb53|53]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 7,465 ⟶ 7,450:
The first horizontal alphabet is the alphabet of the plain text. Each substitution alphabet is designated by the letter at the left of a horizontal line. For example, if the key word is BAD, the second, first and fourth alphabets are used in turn and the word WILL is enciphered XIOM.
 
The Larrabee cipher is merely a slightly different arrangement of the Vigenere cipher and is printed on a card in this form: <span style="color:#aaaaaa;">[</span>[[#pb54|54]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 7,518 ⟶ 7,503:
|-
|}
As shown here, A of the fixed or text alphabet coincides with T of the movable cipher alphabet. This is the setting where T is the letter of the key word in use. The lower movable alphabet is moved for each letter of the message and the A of the fixed alphabet is made to coincide in turn with each letter of the key before the corresponding letter of the text is enciphered. It is obviously only a step from this arrangement to that of a cipher disk, where the <span style="color:#aaaaaa;">[</span>[[#pb55|55]]<span style="color:#aaaaaa;">]</span>fixed alphabet, (a single one will now serve) is printed in a circle and the movable alphabet, also in a circle, is on a separate rotatable disk. Coincidence of any letter on the disk with A of the fixed alphabet is obtained by rotating the disk.</div>
 
The well known U. S. Army Cipher Disk has just such an arrangement of the fixed alphabet but the alphabet of the disk is reversed. This has several advantages in simplicity of operation but none in increasing the indecipherability of the cipher prepared with it. The arrangement of fixed and sliding alphabets which is equivalent to the U. S. Army cipher disk is this:
Line 7,566 ⟶ 7,551:
|-
|}
The first horizontal line is the alphabet of the text. The other twenty-six lines are the cipher alphabets each corresponding to the letter of the key word which is at the left of the line. <span style="color:#aaaaaa;">[</span>[[#pb56|56]]<span style="color:#aaaaaa;">]</span></div>
 
One of the ciphers of Porta was prepared with a card of this kind:
Line 7,641 ⟶ 7,626:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb57|57]]<span style="color:#aaaaaa;">]</span></div>
 
Here again the large letters at the left correspond to the letters of the key and, in each pair of alphabets, the upper one is that of the plain text and the lower is that of the cipher.
Line 7,692 ⟶ 7,677:
The other ciphers mentioned are merely variations of these that have been discussed. It is immaterial, in the following analysis, which variety has been used. The analysis is really based on what can be done with a cipher made up with a mixed cipher alphabet which may be moved with reference to the fixed alphabet of the text, (See Case 7-b). Clearly this is a much more difficult proposition than dealing with a cipher in which the cipher alphabets run in their regular sequence, either backward or forward. In fact, in the analysis of Case 7, we may consider any cipher prepared by the method of Vigenere or any of its variations as a special and simple case.
 
It was long ago discovered that, in any cipher of this class, (1) two like groups of letters in the cipher are most probably the result of two like groups of letters of the text enciphered by the same alphabets and (2) the number of letters in one group plus the number of letters to the beginning of the second group is a multiple of the number of alphabets used. It is evident, of course, that we may have similar groups in the cipher which are not the result of enciphering <span style="color:#aaaaaa;">[</span>[[#pb58|58]]<span style="color:#aaaaaa;">]</span>similar groups of the text by the same alphabets but if we take all recurring groups in a message and investigate the number of intervening letters, we will find that the majority of such cases will conform to these two principles.</div>
 
Changing the key word and message to illustrate more clearly the above points, the following is quoted from the Signal Book, 1914, with reference to the use of the cipher disk in preparing a message with a key word.[[#xd21e15272|1]]
 
“—This simple disk can be used with a cipher word or, preferably, cipher words, known only to the correspondents.... Using the key word ‘disk’ to encipher the message ‘Artillery commander will order all guns withdrawn,’ we will proceed as follows: Write out the message to be enciphered and above it write the key word ... letter over letter, thus:
Line 7,774 ⟶ 7,759:
|-
|}
“Now bring the ‘a’ of the upper disk under the first letter of the key word on the lower disk, in this case ‘D’. The first letter of the message to be enciphered is ‘A’: ‘d’ is found to be the letter connected with ‘A’, and it is put down as the first cipher letter. The letter ‘a’ is then brought under ‘I’ which is the second letter of the key word. ‘R’ is to be enciphered and ‘r’ is found to be the second cipher letter.... Proceed in this manner until the last letter of the key word is used and beginning again with the letter ‘D’, so continue until all letters of <span style="color:#aaaaaa;">[</span>[[#pb59|59]]<span style="color:#aaaaaa;">]</span>the message have been enciphered. Divided into groups of five letters, it will be as follows:</div>
 
“DRZCS XOTFG EYRIF HZRWC SXETA EBKSX MQQQW CKBPT DMF.”
Line 7,818 ⟶ 7,803:
“M. B. Will deposit £27 14s 5d tomorrow,”
 
and the next day we find this one: <span style="color:#aaaaaa;">[</span>[[#pb60|60]]<span style="color:#aaaaaa;">]</span></div>
 
M.B. CT OSB UHGI TP IPEWF H CEWIL NSTTLE FJNVX XTYLS FWKKHI BJLSI SQ VOI BKSM XMKUL SK NVPONPN GSW OL. IEAG NPSI HYJISFZ CYY NPUXQG TPRJA VXMXI AP EHVPPR TH WPPNEL. UVZUA MMYVSF KNTS ZSZ UAJPQ DLMMJXL JR RA PORTELOGJ CSULTWNI XMKUHW XGLN ELCPOWY OL. ULJTL BVJ TLBWTPZ XLD K ZISZNK OSY DL RYJUAJSSGK. TLFNS UVD VV FQGCYL FJHVSI YJL NEXV PO WTOL PYYYHSH GQBOH AGZTIQ EYFAX YPMP SQA CI XEYVXNPPAII UV TLFTWMC FU WBWXGUHIWU. AIIWG HSI YJVTI BJV XMQN SFX DQB LRTY TZ QTXLNISVZ. GIFT AII UQSJGJ OHZ XFOWFV BKAI CTWY DSWTLTTTPKFRHG IVX QCAFV TP DIIS JBF ESF JSC MCCF HNGK ESBP DJPQ NLU CTW ROSB CSM.
Line 7,824 ⟶ 7,809:
The messages in question appeared in an English newspaper. It is fair to presume then that the cipher is in English. This is checked negatively by the fact that it contains the letter W which is not used in any of the Latin languages and that the last fifteen words of the message consist of from two to four letters each, an impossible thing in German. It contains 108 groups which are probably words, as there are 473 letters or an average of 4.4 letters per group, while we normally expect an average of about 5 letters per group. The vowels AEIOU number 90 and the letters JKQXZ number 78. It is thus a substitution cipher (20% of 473=94.6).
 
Recurring words and similar groups are AIIWG, AII<nowiki>; </nowiki>BKSM, BKAI<nowiki>; </nowiki>CT, CTWY, CTW<nowiki>; </nowiki>DLMMJXL, DL<nowiki>; </nowiki>ESF, ESBP<nowiki>; </nowiki>FJNVX, FJHVSI<nowiki>; </nowiki>NPSI, NPUXQG<nowiki>; </nowiki>OSB, OSY, ROSB<nowiki>; </nowiki>OL, OL<nowiki>; </nowiki>PORTELOGJ, PO<nowiki>; </nowiki>SQ, SQA<nowiki>; </nowiki>TP, TP<nowiki>; </nowiki>TLBWTPZ, TLFNS, TLFTWMC<nowiki>; </nowiki>UVZUA, UVD, UV<nowiki>; </nowiki>XMKUL, XMKUHW<nowiki>; </nowiki>YJL, YJVTI. <span style="color:#aaaaaa;">[</span>[[#pb61|61]]<span style="color:#aaaaaa;">]</span></div>
 
=== Frequency Table for the Message ===
Line 8,327 ⟶ 8,312:
|-
|}
In the table for Column 1, the letter G occurs 9 <span style="color:#aaaaaa;">[</span>[[#pb62|62]]<span style="color:#aaaaaa;">]</span>times. Let us consider it tentatively as E. Then if the cipher alphabet runs regularly and in the direction of the regular alphabet, C (7 times) = A and the cipher alphabet bears a close resemblance to the regular frequency table. Note TUV (= RST) occurring respectively 7, 7, and 5 times and the non-occurrence of B, L, M, R, S, Z, (= Z, J, K, P, Q, and X respectively.)</div>
 
In the next table, L occurs 19 times and taking it for E with the alphabet running in the same way, A=H. The first word of our message, CT, thus becomes AM when deciphered with these two alphabets and the first two letters of the key are C H.
Line 8,335 ⟶ 8,320:
In the fourth table, I is clearly E and A=E. The fifth table shows T=14 and J=9. If we take T=E we find that we would have many letters which should not occur. On the other hand, if we take J=E then T=O and in view of the many E’s already accounted for in the other columns, this may be all right. It checks as correct if we apply the last three alphabets to the second word of our message, OSB, which deciphers NOW. Using these alphabets to decipher the whole message, we find it to read:
 
“M. B. Am now safe on board a barge moored below Tower Bridge where no one will think of looking for me. Have good friends but little money owing to action of police. Trust, little girl, you still believe in my innocence although things seem against me. There are reasons why I should not be questioned. Shall try to embark before the mast in some outward bound vessel. Crews will not be scrutinized so sharply as passengers. There are those who will let you know my movements. Fear the police may <span style="color:#aaaaaa;">[</span>[[#pb63|63]]<span style="color:#aaaaaa;">]</span>tamper with your correspondence but later on when hue and cry have died down will let you know all.”</div>
 
The key to this message is CHBEF which is not intelligible as a word but if put into figures indicating that the 2d, 7th, 1st, 4th, and 5th letter beyond the corresponding letter of the message has been used the key becomes 27145 and we may connect it with the “personal” which appeared in the same paper the day before reading:
Line 8,493 ⟶ 8,478:
|-
|}
Every letter except K and W occurs at least six times. We may say then that it is a substitution cipher, Spanish text, and certainly not Case 4, 5 or 6. We will now analyze it for recurring pairs or groups <span style="color:#aaaaaa;">[</span>[[#pb64|64]]<span style="color:#aaaaaa;">]</span>to determine, if it be Case 7, how many alphabets were used. The following is a complete list of such recurring groups and pairs with the number of letters intervening and the factors thereof. In work of this kind, the groups of three or more letters are always much more valuable than single pairs. For example, the groups, HOBE, OYMU, RMERGL and UBRE show, without question, that six alphabets were used. It is not necessary, as a rule, to make a complete list like the following:</div>
 
 
Line 8,713 ⟶ 8,698:
|| 6=2×3
| align=center| XQ
| align=right| 144=2×2×2×2×3×3<span style="color:#aaaaaa;">[</span>[[#pb65|65]]<span style="color:#aaaaaa;">]</span>
|- style="border:none;padding:0.0194in;"
|| ER
Line 8,774 ⟶ 8,759:
Out of one hundred and one recurring pairs we have fifty with the factors 2×3=6; out of twelve recurring triplets, nine have these factors; and the four recurring groups of four or more letters all have these factors. The percentages are respectively 49.5%, 75% and 100% and we may be certain from this that six alphabets were used. But, before the six frequency tables are made up, there is one more point to be considered; why are there so many recurring groups which do not have six as a factor? The answer is that one or more of the alphabets is repeated in each cycle; that is, a key word of the form HAVANA has been used. If this were the key word, the second, fourth and sixth alphabets would be the same. We will see later that in this example the second and sixth alphabets are the same and this introduces the great number of recurring groups without the factor 6.
 
We will now proceed to make a frequency table for each alphabet. As the message is written in thirty columns, we take the first, seventh, thirteenth, etc., as constituting the first alphabet; the second, eighth, fourteenth, etc., as constituting the second alphabet and so on. The prefix and suffix letter is noted for each occurrence of each letter. The importance of this will be appreciated when the form of the frequency tables is examined. None bears any resemblance to the normal frequency table except that each is evidently a mixed up alphabet. The <span style="color:#aaaaaa;">[</span>[[#pb66|66]]<span style="color:#aaaaaa;">]</span>numbers after “Prefix” and “Suffix” refer to the alphabet to which these belong, for convenience in future reference.</div>
 
=== Frequency Tables ===
Line 9,335 ⟶ 9,320:
|| 1
|| R
| align=right| H <span style="color:#aaaaaa;">[</span>[[#pb67|67]]<span style="color:#aaaaaa;">]</span>
|- style="border:none;padding:0.0194in;"
| colspan="5" | Fifth Alphabet
Line 9,620 ⟶ 9,605:
1st Alphabet. Probable vowels T, X<nowiki>; probable common consonants, </nowiki>B, I, N, R. We conclude this because of the frequency of occurrence of T and X and the variety of their prefixes and suffixes. On the other hand, B, I, N, and R have for prefixes and suffixes, in a majority of cases, E, F, O and S which are the probable vowels in the 2d and 6th alphabets.
 
2d and 6th Alphabets.—Probable vowels E, F, O, S<nowiki>; probable common consonants, </nowiki>D, J, Q, U, Y. <span style="color:#aaaaaa;">[</span>[[#pb68|68]]<span style="color:#aaaaaa;">]</span></div>
 
3d Alphabet.—Probable vowels C, I, L<nowiki>; probable common consonants </nowiki>A, Q, T, Y.
Line 9,675 ⟶ 9,660:
|-
|}
In the 1st alphabet, T and X are placed as A and E respectively on the basis of frequency. In the 2d and 6th alphabets, O and E are placed as A and E respectively on the basis of frequency. In the 4th <span style="color:#aaaaaa;">[</span>[[#pb69|69]]<span style="color:#aaaaaa;">]</span>alphabet, E and S are placed as A and E, and in the 5th, D, U and L are placed as A, E and O for the same reason. We now have an excess of E’s and a deficiency of A’s, which will be corrected if, in the 3d alphabet, we place L, I and C as A, E and O respectively. As a check, this gives us TOLEDO as the key word.</div>
 
In the second alphabet, O is four letters to the left of E<nowiki>; we may place </nowiki>O four letters to the left of E in the fourth and it comes under V. Note that in the fourth frequency table O (= V) does not occur. In the same way in the fourth alphabet, S is four letters to the right of E<nowiki>; placing it in the same position with respect to </nowiki>E in the second and sixth, we have S under I. We have already noted that S probably represents a vowel in these two alphabets. In this way, we may add D and U to the third alphabet from their position in the fifth with respect to L and we may add I and O to the fifth from their position in the third with respect to L. In every case we check results from the frequency tables and find nothing unlikely in the results.
Line 9,783 ⟶ 9,768:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb70|70]]<span style="color:#aaaaaa;">]</span></div>
 
Referring to our frequency tables as a check on suppositions, we find everything agrees well enough if we assume the first line to read:
Line 9,834 ⟶ 9,819:
|-
|}
Again referring to the frequency tables the first word is evidently PR<u>O</u>CEDEN<u>T</u>E. We have also HA<u>L</u>LA and <u>M</u>AR<u>C</u>HEUS<u>T</u>ED. The letter B may be determined from another cipher group, JF<u>B</u>SQDLD (56<u>1</u>23456) = PO<u>S</u>ICION. The letter N may be determined from BET<u>N</u>DQXUC (123<u>4</u>56123) = SER<u>R</u>ADERO. The letters F and Y may be determined from JCPJOISL<u>Y</u>DUASIUP<u>F</u> (23456123<u>4</u>5612345<u>6</u>)= <span style="color:#aaaaaa;">[</span>[[#pb71|71]]<span style="color:#aaaaaa;">]</span>COMPANIA PARTIENDO. The completed alphabets, arranged as before, are:</div>
 
 
Line 9,885 ⟶ 9,870:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb72|72]]<span style="color:#aaaaaa;">]</span></div>
 
Let us assume that REINFORCEMENTS is the first word and that it is represented by the cipher group YANZVZNLPPKQFX. We may put the test in this tabular form, using a cipher disk and a Larrabee cipher card to determine the value of A for each letter under these two systems. Any other alphabets suspected may be tried out at the same time.
Line 9,989 ⟶ 9,974:
|-
|}
This alphabet has been determined from many radio messages from A, the superior, to B, his sub-ordinate, who has a force of about 2,000 men near the border. A uses the form ORDENO QUE instead of the more familiar MANDO QUE in all his messages giving orders to B. The following message is received from A by B’s radio station (and other listening stations) and about an hour <span style="color:#aaaaaa;">[</span>[[#pb73|73]]<span style="color:#aaaaaa;">]</span>later there is a good deal of noise and movement as if B’s force were breaking camp.</div>
 
 
Line 10,083 ⟶ 10,068:
|-
|}
Clearly there is nothing here and the assumed words, if they occur, are in the middle of the message. We may jump to the combination PEGQGV at once since the preceding letters do not make ORDENO QUE. We try this without result and proceed to EGQGVJ, GQGVJJ, QGVJJE, GVJJEE, <span style="color:#aaaaaa;">[</span>[[#pb74|74]]<span style="color:#aaaaaa;">]</span>VJJEEE, JJEEEH, JEEEHO, EEEHOB, EEHOBG, EHOBGV, HOBGVG, OBGVGJ, BGVGJC, GVGJCA, VGJCAG, all without result. This work requires less time than might be imagined and is the kind of work which can be divided among a number of operators. Now let us come to the next combination GJCAGX. We add the next three letters, AES, against QUE.</div>
 
If
Line 10,144 ⟶ 10,129:
This method may be used, with some labor, on short words like THE, AND, etc. Parts of the key will appear whenever an assumed word is found in the message and the whole key may be assembled if enough of the parts are available. Even if only part of the key may be so recovered, it will always lead to the ultimate solution of the cipher by trial of the partially recovered key on the message letter by letter.
 
As an example of recovery of a key by use of short common words, let us refer to the message of Case [[#c7a|7-a]]. There are twenty-four groups of three letters each in this message and we will try them against THE, ARE and YOU, assuming that the Vigenere cipher is used. <span style="color:#aaaaaa;">[</span>[[#pb75|75]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 10,382 ⟶ 10,367:
In column 5, we have, for YOU, the key BEF<nowiki>; column 6 gives the same key for </nowiki>ARE<nowiki>; column 10 gives the key </nowiki>FCH for THE and column 15 gives the same key for YOU<nowiki>; column 12 gives the key </nowiki>HBE for ARE and column 16 gives the same key for THE<nowiki>; column 23 gives the key </nowiki>EFC for YOU. The only possible key for the message is a five-letter one made up of the letters BEFCH or EFCHB or FCHBE or CHBEF or HBEFC. If the key in this case were a word, we would have no difficulty in determining it; as it is, there is no real difficulty in the matter as we may now divide the message into blocks of five letters and note that ZSZ (= YOU) form the 3d, 4th and 5th letters of a group. The corresponding key letters, BEF, are then the 3d, 4th and 5th letters of the key which must be CHBEF.
 
This special solution for Case 7 depends so largely on the intuition of the operator in choice of a word that it is not, in general, advisable to use it unless the message is very short and the regular methods of analysis have been tried unsuccessfully. It is, however, a wonderfully short cut in difficult cases where the other methods fail. <span style="color:#aaaaaa;">[</span>[[#pb76|76]]<span style="color:#aaaaaa;">]</span></div>
 
 
[[#xd21e15272src|1]] The method used is not the most satisfactory one for several reasons and a better method is that of writing the message in multiples of the key and enciphering the columns as already described.&nbsp;[[#xd21e15272src|↑]]
 
== Chapter VIII ==
 
<div style="text-align:right;color:#ffffff;">C</div>aseCase 8. The Playfair cipher. This is the English military field cipher; as the method is published in English military manuals and as it is a cipher of proven reliability, it may be met with in general cipher work. The Playfair cipher operates with a key word; two letters are substituted for each two letters of the text.
 
The Playfair cipher may be recognized by the following points: (a) It is a substitution cipher, (b) it always contains an even number of letters, (c) when the cipher is divided into groups of two letters each, no group consists of the repetition of the same letter as SS or BB, (d) there will be recurrence of pairs throughout the message, following in a general way, the frequency table of digraphs of pairs, (e) in short messages there may be recurrence of cipher groups representing words or even phrases, and these will always be found in long messages.
Line 10,395 ⟶ 10,380:
In preparing a cipher by this method, a key word is chosen by the correspondents. A large square, divided into twenty-five smaller squares, is constructed as shown below and the letters of the key word are written in, beginning at the upper left hand corner. If any letter recurs in the key word, it is only used on the first occurrence. The remaining letters of the alphabet are used to fill up the square. It is customary to consider I and J as one letter in this cipher and they are written together in the same square.
 
If the key word chosen is LEAVENWORTH, then the square would be constructed as follows: <span style="color:#aaaaaa;">[</span>[[#pb77|77]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 10,478 ⟶ 10,463:
The message is then broken up into groups of five letters for transmission.
 
To decipher such a cryptogram, (knowing the key word), the receiver divides it into pairs, and <span style="color:#aaaaaa;">[</span>[[#pb78|78]]<span style="color:#aaaaaa;">]</span>from his table finds the equivalent of these pairs, taking the letter immediately above each, when they are in the same vertical line; those immediately on the left, when in the same horizontal line; and those at opposite angles of the rectangle when this is formed.</div>
 
It is evident, from the foregoing description, that any letter of the plain text may be represented in cipher by one of five letters, viz: The one next below it and the other four letters in the same horizontal line with it in the square. Take, for example, the letter D of the plain text, in combination with each of the other letters of the alphabet. We have, using the key LEAVENWORTH:
Line 10,590 ⟶ 10,575:
Note that these letters are those of the vertical column containing D plus the letters B, C and G, of the horizontal line containing D.
 
Lieut. Frank Moorman, U. S. Army, has developed a method for determining the letters which make up the key word in a Playfair cipher. In the first place, a key word necessarily contains vowels in the approximate proportion of two vowels to three consonants and it is also likely that a key word will contain other common letters. This key word is placed in the first row or rows. Now if a table is made, showing what letters in the cipher occur with every letter, it will be found that the letters having the greatest number of other letters in combination with them are very likely to be letters of the key <span style="color:#aaaaaa;">[</span>[[#pb79|79]]<span style="color:#aaaaaa;">]</span>word, or in other words, letters occurring in the first or second lines. An example will make this clear:</div>
 
''Message''
Line 10,596 ⟶ 10,581:
DB FN EX TZ MF TO VB QB QT OB XA OF PR TZ EQ RH QK QV DX OK AB PR QI EL TV KE EX XS FS BP WD BO BY BF RO EA BO RH QK QV TX GU EL AB TH TR XN ON EA AY XH BO HN EX BS HR QB ZM SE XP HF GZ UG KC BD PO EA AY XH BO XP HF KR QI AB PR QI EL BX FZ BI SE FX PB RA PR QI WC BR XD YG TB QT EA AY XH BO HN EX BS HR QB PR QI EL BX BT HB QB NF SI SE BX NU XP BU RB XB QR OX BA TB RH BP WD RP RO GU GX QR SE ZY OX BA EL AX CW BY BA SX RK RO PR HB OP BD PI CN OX EM RP KR XT EL AX CW EQ FZ SX EL RH RO PR HB UX DA SE XN ZN GU EL BX FS DG DB TB ZL VE RH BO RQ.
 
From this message, we make up the following table, considering the letters of each pair: <span style="color:#aaaaaa;">[</span>[[#pb80|80]]<span style="color:#aaaaaa;">]</span></div>
 
''First Letters of Pairs''
Line 11,306 ⟶ 11,291:
|-
|}
From this table we pick out the letters B, E, F, O, R, T, X, as tentative letters of the key word on account of the variety of other letters with which they occur. As there are but two vowels for seven letters, we will add A to the list on account of its occurrences with B, D, E, R, and X. This leaves the letters for the bottom lines of the square as follows: <span style="color:#aaaaaa;">[</span>[[#pb81|81]]<span style="color:#aaaaaa;">]</span></div>
 
 
Line 11,380 ⟶ 11,365:
|-
|}
Let us now check this by picking out the combinations beginning with EL and seeing if the table will solve them. We find, ELTV, ELAB, ELBXFZ, ELBXBT, ELAXCWBY, ELAXCWEQ, ELRH, ELBXFS. Now, on the assumption that the letter after EL represents E, we have it represented by A three times, B three times, R once and T once. This requires <span style="color:#aaaaaa;">[</span>[[#pb82|82]]<span style="color:#aaaaaa;">]</span>that A and B be put in the same horizontal line with E, since T is already there, and R is tentatively under E.</div>
 
The combination ELTV now equals THEZ. If the T were moved one place to the left, it would be THEY, a more likely combination, but this requires the L to be moved one place to the left also, by putting I or K in the key word and taking out O, R or X and returning it to its place in the alphabetical sequence. The most frequent pairs containing O are B O six times, R O four times, and O X three times. Now these pairs equal respectively E N, E S and H E, if O is put between N and P in the fourth line. We will therefore cease to consider it as a letter of the the key word. The combination ELAB can only be THE_ on the assumption that A is the first letter to the right of E. The combination ELBX occurs three times. If it represents THE_, the B must be the first letter of the first line and the X must now be placed under E where the R was tentatively put. We can get THE_ out of ELRH by putting R in the first line or leaving it where it is, but the preponderance of the BX combination should suggest the former alternative.
Line 11,420 ⟶ 11,405:
|-
|}
As I put in the space under B will give the word BEATRIX and as a vowel is clearly necessary there, we will so use the IJ and leave K between H and L. This leaves C, D and F to be placed. It appeared at <span style="color:#aaaaaa;">[</span>[[#pb83|83]]<span style="color:#aaaaaa;">]</span>first that F was in the key but if it is in the second line, in proximity to the letters of the first line, it will give the same indications. Completing the square then, we have</div>
 
 
Line 11,464 ⟶ 11,449:
=== Two-character Substitution Ciphers ===
 
Case 9.—Two-character substitution ciphers. In ciphers of this type, two letters, numerals, or conventional signs, are substituted for each letter of the text. There are many ways of obtaining the characters <span style="color:#aaaaaa;">[</span>[[#pb84|84]]<span style="color:#aaaaaa;">]</span>to be substituted but, in general, these ciphers may be considered as special varieties of Case 6 or Case 7. The ciphers which come under this case are not well suited to telegraphic correspondence because the cipher message will contain twice as many letters as the plain text. However they are so used; an example is at hand in which two numerals are substituted for each letter and this makes transmission by telegraph very slow.</div>
 
Case 9 can be recognized by some or all of the following points; the number of characters in the cipher is always an even number; often only a few, say five to ten, of the letters of the alphabet appear; either a frequency table for pairs of the cipher text resembling the normal single letter frequency table can be made, or groups of four letters will show a regular recurrence, from which the cipher can be solved as in Case 7.
Line 11,480 ⟶ 11,465:
RN TG NR AA GR NA RN AG TG RA TG AA NN AN GG RA RA TN AA NR NN NR NA AA GG AA NG RN GG NN NR NA AA AN RA TN AN NN GG RN RN NR GT TG RG TG GR NA RN TG NN AR TG GR NR GR NN TG TG AA NN AR NA RN RT TG AG GG AA AA NA NN AR NA GA NG NA TN NN AT
 
<span style="color:#aaaaaa;">[</span>[[#pb85|85]]<span style="color:#aaaaaa;">]</span></div>
 
With arbitrary letters substituted, we have
Line 11,683 ⟶ 11,667:
|-
|}
 
<span style="color:#aaaaaa;">[</span>[[#pb86|86]]<span style="color:#aaaaaa;">]</span></div>
 
If these be substituted we have for the message:
Line 11,868 ⟶ 11,852:
|-
|}
An examination of the groups of two numerals each which make up this message, shows that we have 11 to 36 and 41 to 65 with eleven groups missing. Now the 11 to 36 combination is a very familiar one in numeral substitution ciphers (See Case 6-c) and it <span style="color:#aaaaaa;">[</span>[[#pb87|87]]<span style="color:#aaaaaa;">]</span>will be noted that 41 to 66 would give us a similar alphabet. Let us make a frequency table in this form:</div>
 
 
Line 12,063 ⟶ 12,047:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb88|88]]<span style="color:#aaaaaa;">]</span></div>
 
Then A=11 or 41, J=10 or 40 and T=20 or 50 as we found. Using the above alphabet, the message may easily be read. Note that this cipher is made up of ten characters only, the Arabic numerals.
Line 12,297 ⟶ 12,280:
|-
|}
We at once note the resemblance between the frequency tables for the groups 11 to 19 and 21 to <span style="color:#aaaaaa;">[</span>[[#pb89|89]]<span style="color:#aaaaaa;">]</span>29; for the groups 30 to 36 and 50 to 56; and for the groups 40 to 49 and 70 to 79. Also the groups 11 to 19 and 21 to 29 have a frequency fitting well with the normal frequency table of the letters A to I<nowiki>; the groups 41 to 49 and 71 to 79 have a frequency fitting well with the normal frequency table of the letters </nowiki>K to S<nowiki>; and the groups 31 to 36 and 51 to 56 have a frequency fitting well with the normal frequency table of the letters </nowiki>U to Z. We have J and T unaccounted for, but note what occurred in Case 9-b and that 40 and 70 would correspond well with T if they followed respectively 49 and 79. We may now make up a cipher table as follows:</div>
 
 
Line 12,353 ⟶ 12,336:
and this table will solve the cipher message.
 
In ciphers coming under case 9-b and 9-c, it is not uncommon to assign some of the unused numbers such as 85, 93, etc., to whole words in common use or to names of persons or places. In case such groups are found, the meaning must be guessed at from the context; but if many messages in the same cipher are available, the meaning of these groups will soon be obtained. The appearance of such odd groups of figures in a message does not interfere materially with the analysis, and it will be apparent at once on deciphering the message that they represent whole words instead of letters. <span style="color:#aaaaaa;">[</span>[[#pb90|90]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter IX ==
Line 12,359 ⟶ 12,342:
== Other Substitution Methods ==
 
<div style="text-align:right;color:#ffffff;">T</div>heThe foregoing cases by no means exhaust the possibilities of the substitution cipher but they cover practically all methods which are satisfactory for military purposes, having in mind conservation of time, the minimizing of mental strain, and the requirements that complicated apparatus and rules be avoided, and that the resulting cipher should be adapted to telegraphic correspondence.
 
A message may be re-enciphered two or more times using a different key word each time or it may be enciphered by one method and re-enciphered by another method, using the same or a different key word. Complicated cipher systems requiring the memorizing of, or reference to, numerous rules have been devised for special purposes. Such systems usually fail utterly if there are any errors in transmission and it will be seen later that such errors are very common.
Line 12,365 ⟶ 12,348:
There are several ingenious cipher machines by which complicated ciphers can be formed, but if the apparatus is available and fairly long messages are at hand for examination, it is usually possible to solve them. Such machines are not, as a rule, simple and small enough for field use; and it must always be remembered that a machine cipher operates on certain mechanical cycles, which can be determined if the machine is available.
 
A book by Commandant Bazeries, entitled “Etude sur la Cryptographie Militaire,” and a series of <span style="color:#aaaaaa;">[</span>[[#pb91|91]]<span style="color:#aaaaaa;">]</span>articles by A. Collon, entitled “Etude sur la Cryptographie,” which appeared in the Revue de L’Armée Belge, 1899–1902, give illustrations and details of operation of several of these cipher machines and the latter goes into the methods of deciphering messages enciphered with them. These methods of analysis require long messages, and as each one is adapted only to the product of a certain machine or apparatus, it is not considered advisable to include a discussion of them here. Those interested in such advanced cipher work must refer to these and other European authors on the subject.</div>
 
The requirement that cipher messages should be adapted to telegraphic transmission, practically excludes ciphers in which three or more letters or whole words are substituted for each letter of the plain text. Such ciphers might be used for the transmission of very short messages but in no other case.
 
The cipher of Case 7, with a key word or phrase longer than one-fourth of the message, the cipher after the method of Case 7, using a certain page of a book as a key, and the cipher with a running key, where each letter of the cipher is the key for enciphering the next letter, all look safe and desirable, theoretically, but, practically, the work of enciphering and deciphering is hopelessly slow, and errors in enciphering or transmission make deciphering very difficult. Incidentally the first and second of these ciphers can be solved by the special solution for Case 7, and the third can be solved by trying each of the twenty-six letters of the alphabet as the first key letter, and then continuing the work for five or six letters of the cipher. When the proper primary key letter is found, the solution of the next five or six letters of the cipher will make sense, and thereafter the cipher offers no difficulty. <span style="color:#aaaaaa;">[</span>[[#pb92|92]]<span style="color:#aaaaaa;">]</span></div>
 
There are numerous other methods of preparing what is virtually a very long, or even an indefinitely long key from a short key word, but all such cipher methods have the same practical disadvantages of slowness of operation and difficulty in deciphering, if errors of enciphering or transmission have been made.
Line 12,381 ⟶ 12,364:
On preliminary determination, a cipher prepared by such a combination of methods will appear to be a substitution cipher to be solved as such. The frequency table of the result will resemble the normal frequency table, although the message will still be unintelligible and we will know at once that it is a transposition cipher for further solution.
 
The substitution methods usually found in combination ciphers are those of Case 4, 5 and 6, and the transposition method is nearly always Case 1, and particularly the simple varieties of this case like the <span style="color:#aaaaaa;">[</span>[[#pb93|93]]<span style="color:#aaaaaa;">]</span>fence rail (Case 1-i), reversed writing or vertical writing.</div>
 
A few examples will show some of the possible combinations.
Line 12,429 ⟶ 12,412:
|-
|}
<span style="color:#aaaaaa;">[</span>[[#pb94|94]]<span style="color:#aaaaaa;">]</span></div>
 
The enciphering of the message then proceeds, dealing with the indicator and substituted letters as if they were the letters of a word. The decipherer arriving at an X, a series of the letters of the above table and another X, casts out the X’s and substitutes numbers for the letters.
Line 12,435 ⟶ 12,418:
Sometimes no indicator is used, but the system of substitution of a certain letter for each numeral is followed. Again, the indicator NR may be used instead of a single letter.
 
Conventional letters may also be substituted for special characters like ?, $, ”, -, and periods and commas, but this is rarely done except for the period and question mark. The context will usually determine the meaning of such letters when found. In this connection, the use of X to represent end of a sentence and Q to represent a question mark is quite common. <span style="color:#aaaaaa;">[</span>[[#pb95|95]]<span style="color:#aaaaaa;">]</span></div>
 
== Chapter X ==
 
=== Errors in Enciphering and Transmission ===
 
One of the most difficult tasks before the cipher expert, is the correction of errors which creep into cipher texts in the process of enciphering and transmission by telegraph or radio.
Line 12,468 ⟶ 12,451:
so that there may be a minimum of such confusion.
 
In cipher work it is necessary, under ordinary circumstances, to use any or all of the letters of the alphabet. To assist operators in keeping the text straight, it is customary to divide cipher text into groups of four, five, six or ten letters, and usually groups of five letters are used. The receiving operator may then expect five letters per group, and if he receives more or less he is sure that either he or the sending operator has made an error. This division into groups of a constant number of letters eliminates word forms and, in the mind of the non-expert, increases <span style="color:#aaaaaa;">[</span>[[#pb96|96]]<span style="color:#aaaaaa;">]</span>the difficulty of solving the cipher. But the increase in difficulty is more apparent than real; particularly, as a cipher examiner habitually finds himself dealing with ciphers without word forms, and the occurrence of a cipher with word forms usually means that he has an easy one to handle.</div>
 
Messages are occasionally encountered which consist partly of plain text and partly of cipher. The cipher part may or may not retain its word forms, but, when this method is used, it is clearly impossible to have a fixed number of letters in each cipher group if the word forms are not used. It is almost impossible to prevent errors of transmission in such messages, and it often requires considerable skill and labor to correct them.
Line 12,474 ⟶ 12,457:
For those unfamiliar with the telegraph alphabets, they are given below. Messages sent by commercial or military telegraphs or buzzer lines will be transmitted with the American Morse alphabet. Those sent by radio, visual signalling or submarine cable will be transmitted by Continental Morse, known also as the International Code. Messages may be transmitted by both alphabets in course of transmission. For example, a cablegram from the Philippines to Nome, Alaska, will be transmitted by Continental Morse (commercial cable) from Manila to San Francisco, by American Morse (commercial land line) from San Francisco to Seattle, by Continental Morse (military cable) from Seattle to Valdez, by American Morse (military land line) from Valdez to Nulato and by Continental Morse (military radio) from Nulato to Nome.
 
Prior to February, 1914, the Mexican government telegraph lines used an alphabet differing slightly from the American and Continental Morse. However, at that time, the Continental Morse alphabet was prescribed for use on these lines and <span style="color:#aaaaaa;">[</span>[[#pb97|97]]<span style="color:#aaaaaa;">]</span>it is believed that the use of the old alphabet has entirely ceased on Mexican lines. However, skilled American operators would have no difficulty in picking up this alphabet if it were found to be in use.</div>
 
Radio communication is, by International Convention, invariably in Continental Morse.
Line 12,613 ⟶ 12,596:
|| 6
| align=center| '''. . . . . .'''
| align=right| - . . . .<span style="color:#aaaaaa;">[</span>[[#pb98|98]]<span style="color:#aaaaaa;">]</span>
|- style="border:none;padding:0.0194in;"
|| 7
Line 12,660 ⟶ 12,643:
RELIA BLEIN FOR<u>GF</u> TIONF ROMCA SASGR ANDES RECEI <u>L</u>EDHE RETHA TAMOU NTEDD ETACH M<u>SK</u>TL EFTTH ERELA STNIG HTTOE SCORT SHYMP ENTOF ARMSA NDAMM UNITI ONTOB ESMUG GLEDA CR<u>JX</u>S BORDE RNEXT FRIDA YNIGH TATAP OINTT WELVE MI<u>ENX FKOSB</u>
 
Beyond this point the message, if we continue the deciphering process, is unintelligible. The sense fails at the first P of the cipher group BSPPK. We have translated B as M with disk A to N and S as I with disk A to A. The last words that make sense <span style="color:#aaaaaa;">[</span>[[#pb99|99]]<span style="color:#aaaaaa;">]</span>are A POINT TWELVE MI<nowiki>; clearly the rest of the last word is </nowiki>LES and this is represented by PPK. Putting P=L then A=A and putting P=E then A=T. In other words, the encipherer forgot to change his disk setting, A to A, after enciphering I into S and enciphered L into P with the same setting, A to A. Continuing the deciphering on this basis, we have:</div>
 
&nbsp;&nbsp;LES EASTO FDOUG LAS.T HISIS INYOU RDIST RICT. WILLY OUTAK ENECE SSAR<u>V</u> STEPS TOPRE VENTT HISSH IPMEN TFROM GOING <u>SKZRX</u> LEADE ROFSM UGGLE RSSA<u>L</u> DTOBE JUANH ERNAN DEZOF NACO.
Line 12,678 ⟶ 12,661:
Line 7, <u>V</u> should be Y. A mistake in copying.
 
Line 8, <u>SKZRX</u>. If we take X as a period, then this line might be OVER, the R being correct and <span style="color:#aaaaaa;">[</span>[[#pb100|100]]<span style="color:#aaaaaa;">]</span>SKZ being in question. The corresponding cipher letters are AEO and if we encipher OVE we get ETJ. Here again we have a telegrapher’s error, . - .--- becoming .- . ---</div>
 
Line 9, <u>L</u> should be I. The corresponding cipher letter should be K instead of H<nowiki>; an error in copying by the encipherer.</nowiki>
Line 12,690 ⟶ 12,673:
The deciphered and corrected message is:
 
“Reliable information from Casas Grandes received here that a mounted detachment left there last night to escort shipment of arms and ammunition to be smuggled across border next Friday night, at a point twelve miles east of Douglas. This is in <span style="color:#aaaaaa;">[</span>[[#pb101|101]]<span style="color:#aaaaaa;">]</span>your district. Will you take necessary steps to prevent this shipment going over? Leader of smugglers said to be Juan Hernandez of Naco.”</div>
 
Another remarkable example of errors in transmission by American Morse is the following: A message, partly in cipher and partly in plain text, contained the cipher words
Line 12,735 ⟶ 12,718:
|}
and that there were five errors in transmission in these three cipher groups alone.
<!--
 
== Colophon ==
 
=== Availability ===
 
<span style="background-color:#ddddee;color:#000000;">This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the </span>[http://www.gutenberg.org/license Project Gutenberg License]</span><span style="background-color:#ddddee;color:#000000;"> included with this eBook or online at </span>[http://www.gutenberg.org/ www.gutenberg.org]</span><span style="background-color:#ddddee;color:#000000;">.</span>
 
<span style="background-color:#ddddee;color:#000000;">This eBook is produced by the Online Distributed Proofreading Team at </span>[http://www.pgdp.net/ www.pgdp.net]<span style="background-color:#ddddee;color:#000000;">.</span>
Line 13,240 ⟶ 13,223:
 
 
-->
 
{{worksubpagefooter}}
----
:<small>Back to ''[[{{ROOTPAGENAME}}]]''</small>
{{reflist}}
[[Category:{{ROOTPAGENAME}}]]
[[Category:{{SUBPAGENAME}}]]