All public Sources
Public document

Mathematical Recreations and Essays

PDF document375 original pagesAdded to Pandi 6 November 2026
AskTalkView media
Reading progressPage 58 of 81

would be marked bn/tbn/t. This is an instance of a cipher of the first type.

A cipher of the second type is one in which the same letter or word is, in some or all cases, represented by more than one symbol, and this symbol always represents the same letter or word. Such ciphers were uncommon before the Renaissance, but the fact that to those who held the key they were not more difficult to write or read than ciphers of the first type, while the key was not so easily discovered, led to their common adoption in the seventeenth century.

A simple instance of such a cipher is given by the use of numerals to denote the letters of the alphabet. Thus aa may be represented by 11 or by 37 or by 63, bb by 12 or by 38 or by 64, and so on, and finally zz by 36 or by 62 or by 88, while we can use 89 or 90 to signify the end of a word and the numbers 91 to 99 to denote words or sentences which constantly occur. Of course in practice no one would employ the numbers in an order like this, which suggests their meaning, but it will serve to illustrate the principle. I have deliberately used numbers of only two digits, as the recipient can then point off the symbols used in twos, and will know that each pair of symbols represents a letter, word, or sentence in the message. A disadvantage of this cipher is that since each letter is denoted by two symbols the length of the message is doubled by putting it in cipher.

The cipher can be improved by introducing after every (say) eleventh digit a non-significant digit. If this is done the recipient of the message must erase every twelfth digit before he begins to read the message. With this addition the difficulty of discovering the key is considerably increased.

The same principle is sometimes applied with letters instead of numbers. For instance, if we take a word (say) of nn letters, preferably all different, and construct a table as shown below of n2n^2 cells, each cell is defined by two letters of the key-word. Thus, if we choose the word smoking-cap we shall have 100 cells, and each cell is determined uniquely by the two letters denoting its row and column. If we fill these cells in order with the letters of the alphabet we shall have a system similar to that explained above, where aa will be denoted by ssss or ogog or nono, and so for the other letters. The last 22 cells may be used to denote the first 22 letters of the alphabet, or better, three or four of them may be used after the end of a word to show that it is ended, and the rest may be used to denote words or sentences which are likely

SMOKINGCAP
Sabcdefghij
Mklmnopqrst
Ouvwxyzabcd
Kefghijklmn
Iopqrstuvwx
Nyzabcdefgh
Gijklmnopqr
Cstuvwxyz
A
P

to occur frequently.

Like the similar cipher with numbers this can be improved by introducing after every mth letter any single letter which it is agreed shall be non-significant. To decipher a communication so written it is necessary to know the clue-word and the clue-number.

Here for instance is a communication written in the above cipher with the clue-word smoking-cap, and with 7 as the clue-number: ngmk sigrioicpssamckscakqignassnxmigpoasuiamnoccmpaminscnogcpcncisyiksk amsssgnncaeikknoomkhscpcmscbgpngsiawssgiggndiica1. In this sentence the letters denoting the 79th, 80th, 81st, and 82nd cells have been used to denote the end of a word, and no use has been made of the last 18 cells.

Another cipher of this type is made as follows*. The sender and recipient of the message furnish themselves with identical copies of some book. In the cipher only numerals are used, and these numerals indicate the locality of the letters in the book. For example, the first letter in the communication might be indicated by 79–8–5, meaning that it is the 5th letter in the 8th line of the 79th page. But though secrecy might


  • The method is well known. It is mentioned by E.A. Poe, Collected Works, vol. III, pp. 338–9, but is much older.

  1. The original text read … sssgnnn…, which leads to gobbledegook in the deciphered message.

be secured, it would be very tedious to prepare or decode a message, and the method is not as safe as some of those described below.

Another cipher of this type is for the sender and receiver to agree on some common book of reference and to agree further on a number which, if desired, may be communicated as part of the message. To employ this cipher the page of the book indicated by the given number must be used. The first letter in it is taken to signify aa, the next bb, and so on—any letter which occurs a second time or more frequently being neglected. It may be also arranged that after nn letters of the message have been ciphered, the next nn letters shall be written in a similar cipher taken from the ρ\rhoth following page of the book, and so on. Thus the possession of the code-book would be of little use to anyone who did not also know the numbers employed. It is so easy to conceal the clue number that with ordinary prudence it would be almost impossible for an unauthorized person to discover a message sent in this cipher. The clue number may be communicated indirectly in many ways. For instance, it may be arranged that the number to be used shall be the number sent, plus (say) qq, or that the number to be used shall be an agreed multiple of the number actually sent.

A cipher of the third type is one in which the same symbol represents sometimes one letter or word and sometimes another. Usually such ciphers are easily made or read by those who have the key, but are difficult to discover by those who do not possess it.

A simple example is the employment of pre-arranged numbers in shifting forward the letters that make the communication. For instance, if we agree on the clue number (say) 4276, then the first letter in the communication is replaced by the fourth letter which follows it in the natural order of the alphabet: for instance, if it were an aa it would be replaced by ee. The next letter is replaced by the second letter which follows it in the natural order of the alphabet: for instance, if it were an aa it would be replaced by cc. The next letter is replaced by the seventh after it. The next by the sixth after it. The next by the fourth, and so on to the end of the message. Of course to read the message the recipient would reverse the process. If the letters of the alphabet are written at uniform intervals along a ruler, and another ruler similarly marked with the digits can slide along it, the letter corresponding to the shifting of any given number of places can be read at once.

It would be undesirable to allow the division into words to appear

in the message, and either the words must be run on continuously, or preferably the less common letters jj, qq, zz may be used to mark the division of words. It is also well to conceal the number of digits in the clue-number. This can be done and the cipher much improved by inserting after every (say) mmth letter a non-significant letter.

Here for instance is a communication written in this cipher with the clue-numbers 4276 and 7: atpzhvaxuxhiepvoxfwghzniyprpsikbdkzygkqprgezuytlkobldifebzmxlpogquyitcmgrkckkuexvsqkaziaaggsigaytnvvssttyvuaaslywggjuzmcsfctqbpuwjuaeptxhibwpxiultxlavvtqzoxwkvttuvvhqebxnpvismphzmqtuuxjykeevltif. The recipient would begin by striking out every eighth letter. He would then shift back every letter 4, 2, 7, 6, 4, 2, &c., places respectively, and in reading it would leave out the letters jj, qq, and zz as only marking the ends of words.

This is an excellent cipher, and it has the additional merit of not materially lengthening the message. It can be rendered still more difficult by arranging that either or both the clue-numbers shall be changed according to some definite scheme, and it may be further agreed that they shall change automatically every day or week.

A somewhat similar system was proposed by Wilkins*. He took a key-word, such as prudentia, and constructed as many alphabets as there were letters in it, each alphabet being arranged cyclically and beginning respectively with the letters pp, rr, uu, dd, ee, nn, tt, ii, and aa. He thus got a table like the following, giving nine possible letters which might stand for any letter of the alphabet. Using this we may vary the cipher in successive words or letters of the communication. Thus

| a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | p | q | r | s | t | u | v | w | x | y | z | a | b | c | d | e | f | g | h | i | k | l | m | n | o | | r | s | t | u | v | w | x | y | z | a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | | u | v | w | x | y | z | a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | a | b | c | | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | a | b | c | d | | n | o | p | q | r | s | t | u | v | w | x | y | z | a | b | c | d | e | f | g | h | i | k | l | m | | t | u | v | w | x | y | z | a | b | c | d | e | f | g | h | i | k | l | m | n | o | P | q | r | s | | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | a | b | c | d | e | f | g | h | | a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |


  • Mercury, by J. Wilkins, London, 1641, pp. 59, 60.

the message The prisoners have mutinied and seized the railway station would, according as the cipher changes in successive words or letters, read as Hwt fhziedvhi bupy pxwmqmhg erh ervmrq max zirteig station or as Hyy svvlunthm lehx uukzgmiq tvd gucciq mqe frcoanr atpkrr. I have taken Wilkins’s key-word, but it is obvious that it would be desirable to omit a wherever it appears in it, since otherwise, if the cipher changes in successive words, some of the words may appear unaltered in the cipher, as is shown in the first of the examples given above.

A cipher of the fourth type is one in which each letter is always represented by the same symbol, but more than one letter may be represented by the same symbol. Such ciphers were not uncommon at the beginning of the nineteenth century, and were usually framed by means of a key-sentence containing about as many letters as there are letters in the alphabet.

Thus if the key-phrase is The fox jumped over the garden gate, we write under it the letters of the alphabet in their usual sequence as shown below:

Continue reading
Page 58 of 81