Code and Cipher Messages

The Youth’s Instructor, Vol. 66, No. 38.

During war time one hears a great deal about code and cipher telegraphic messages. The difference between these two kinds of messages is this: “A code is an arrangement by which two persons agree, when exchanging messages, always to substitute certain words or symbols for the real words of the message; while a cipher is the substitution of some symbol for a letter of the alphabet.” The former deals with words, phrases, or sentences, while the latter deals with symbols for letters. Thus these substitutes might be agreed on for a code:

a = the French ship = market sailed from New York = price sailed from Boston = quotation today = is for Marseilles = an even number for Bourdeaux = any number with a fraction

“With such a code, a German spy in New York could cable a seemingly harmless message to a friend in Holland, such as: ‘The market price is 110.’ That would mean, of course, ‘A French ship sailed from New York today for Marseilles.’ Whereas a very slight change in wording, ‘The market quotation is 110½,’ would mean, ‘A French ship sailed from Boston today for Bourdeaux.’

“Messages of that sort could be exchanged daily between a broker in Wall Street and a broker in Amsterdam, and by the addition of a few more words, could be infinitely varied and would look like perfectly legitimate commercial correspondence.”

In cipher every word is spelled out; but the words are spelled by means of symbols. Thus Baltimore might be spelled xvsI II = :oλ.

b = x a = v l = s t = I i = II m = = o = : r = o e = λ

and Washington, according to this cipher, would be spelled dzhsrmtglm.”

Code messages are always in use for economy’s sake; but in time of war they serve for secrecy as does no other form of message. The cipher message serves only to delay the unraveling of a message; for an expert requires but two or more hours to unravel an ordinary cipher message.

Many enemy messages are written out in the enemy language, then coded and afterward put into cipher. Such messages are called enciphered code, and require a knowledge of the code for translation.

One deciphers or decodes a message when he translates it.

The Playfair Cipher Message

The Playfair cipher message is regarded as the cleverest form ever devised, and is the one used by the British army in the field. The managing editor of the World’s Work gives in the June number of this magazine, the following description of these ciphers:

“First a square is drawn, divided into fifths each way. This arrangement gives twenty-five spaces, to contain the letters of the alphabet—I and J being put in one square because there would never be any plain sentence in which it would not be quite obvious which one of them is needed to complete a word of which the other letters are known.

“Next a ‘key word’ is chosen—and herein lies the cleverness and the simplicity of this cipher, because every time the key word is changed, the whole pattern of the alphabet is changed. Suppose the key word is Gardenia. It is now spelled out in the squares:p. 9

“The second a is left out, as there must not, of course, be duplicates on the keyboard. Now the rest of the alphabet is written into the squares in their regular sequence:

“That is the complete keyboard. The method for using it is this:

“The message is written out in plain text; for example:

DESTROY BRIDGE AT ONCE

(Only capital letters are commonly used in cipher work.) This message is now divided into groups of two letters, in the same order, so that it reads:

DE ST RO YB RI DG EA TO NC EX

(The X is added to complete the group and is called a null.) These groups of twos are now ciphered from the keyboard into other groups of twos, by the following method:

“Where two joined letters of the original message appear in the same horizontal row on the keyboard, the next letter to the right is substituted for each. Thus, the first two letters of our message are DE. They occur in the same horizontal row on our keyboard. Consequently, for D we write E, and for E we go ‘on around the world’ to the right, or back to the other end of the row, and write G for E. This gives us DE enciphered as EG.

“Where two joined letters of the original message appear in the same vertical row on the keyboard, the next letter below is substituted for each.

“Where two joined letters of the original message appear neither in the same horizontal nor the same vertical row on the keyboard, we imagine a rectangle with the two letters at the opposite corners, and in each case substitute the letter found on the keyboard at the other corner of the same horizontal row. This sounds complicated, but in reality is very simple. For example, take the third two-letter group of our message—RO. The rectangle in this case is—

RDE BCF LMO

and for R we substitute E, and for O we substitute L.

“Substituting our whole message by this system, it reads:

Original: DE ST RO YB RI DG EA TO NC EX Cipher: EG TU EL XC AB EA GR UM IF RZ

“As telegraph operators are accustomed to send these gibberish messages in groups of five letters (so that they can check errors, knowing, for example, that when only four appear in a group, something has been left out), these enciphered groups of twos are now combined into groups of fives, so that the finished cipher reads:

EGTUE LXCAB EAGRU MIFRZ

“The foregoing sounds extremely complicated, but the truth is that anybody, after half an hour’s practice, can put a message into this kind of cipher (‘Playfair’ cipher) almost as fast as he can print the straight English of it in capital letters. And unless the person who reads it knows the key word which determined the pattern on his keyboard, he would have to be an expert to decipher it, and even he could do it only after a good deal of work.

The Chess Board Cipher

“Another ingenious cipher is called the ‘Chess Board.’ First, a sheet of paper is ruled into squares exactly like a chessboard—that is, a square divided into eighths each way. This arrangement gives, of course, sixty-four small squares. Then, by agreement between the people who intend to use this cipher, sixteen of these squares are agreed upon and are cut out of the sheet with a knife. Suppose, for example, this pattern is chosen, and the squares showing in white are cut out.

“Next, another sheet of paper is ruled into a chessboard, of exactly the same size as the first. The perforated sheet is now laid on top of the second sheet, so that the squares on the one exactly cover the squares on the other. Now, with a pen or pencil, the plain text of the secret message is printed on the under sheet by writing through the perforations of the upper sheet, only one letter being written in each square. This, of course, permits the writing of sixteen letters of the message.

“Suppose the complete message is to be: ‘Authorize payment ten million dollars to buy copper for shipment to Germany.’ Then the lower sheet, after we have written through the perforations, will look like this:p. 10

The perforated sheet is now turned to the right through one fourth of a complete revolution, so that the top of it is at the right side of the lower sheet and so that the two chessboards again ‘match up.’ This operation exposes, through the perforations, a new set of sixteen open squares on the lower sheet. The writing of the message is continued, and the lower sheet now looks like this:

Again the perforated sheet is turned to the right, and sixteen more letters are written. Once more the whole sixty-four squares are utilized, looking like the above diagram:

“These letters are now put upright, like this: