Mathematical Recreations and Essays
- The document, its translation, and the key used are given in Wheatstone’s Scientific Papers, London, 1879, pp. 321–341.
† Tachy-graphy by T. Shelton. The earliest edition I have seen is dated 1641. A somewhat similar system by W. Cartwright was issued by J. Rich under the title Semographie, London, 1644.
is such that it can hardly be expressed with decency, he changed from English to a foreign language, or inserted non-significant letters. Shelton’s system had been forgotten when attention was first attracted to the diary. Accordingly we may say that, to those who first tried to read it, it was written in cipher, but Pepys’s contemporaries would have properly described it as being written in shorthand, though with a few modifications of his own invention.
A system of shorthand specially invented for the purpose is a true cipher. One such system in which each letter is represented either by a dot or by a line of constant length was used by the Earl of Glamorgan, better known by his subsequent title as Marquis of Worcester, in 1645, as also by Charles I. in some of his private correspondence. It is a cipher of the first type and has the defects inherent in almost every cipher of this kind: in fact Glamorgan’s letter was deciphered, and the system discovered by Mr Dircks*. Obsolete systems of shorthand† might be thus used to form an effective cipher.
It is always difficult to read a very short message in cipher, since necessarily the clues are few in number. When the Chevalier de Rohan was sent to the Bastille, on suspicion of treason, there was no evidence against him except what might be extracted from Monsieur Latruaumont. The latter died without making any admission. De Rohan’s friends had arranged with him to communicate the result of Latruaumont’s examination, and accordingly in sending him some fresh body linen they wrote on one of the shirts Mg dulhxcclgu ghj yxuj, lm ct ulgc alj. For twenty-four hours de Rohan pored over the message, but, failing to read it, he admitted his guilt, and was executed November 27, 1674.
The cipher is a very simple one of the first type, but the communication is so short that unless the key were known it would not be easy to read it. Had de Rohan suspected that the second word was prisonnier, it would have given him 7 out of the 12 letters used, and as the first and third words suggest the symbols used for l and t, he could hardly have failed to read the message.
* Life of the Marquis of Worcester by H. Dircks, London, 1865. Worcester’s system of shorthand was described by him in his Century of Inventions, London, 1663, sections 3, 4, 5.
† Various systems, including those used in classical and medieval times, are described in the History of Shorthand by T. Anderson, London, 1882.
The following cipher is said to have been employed by Marie Antoinette *. I take it that it was used in the method indicated on page 265
| AB | A | B | C | D | E | F | G | H | I | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|
| CD | M | A | B | C | D | E | F | G | H | I | L |
| EF | L | M | A | B | C | D | E | F | G | H | I |
| GH | I | L | M | A | B | C | D | E | F | G | H |
| IL | H | I | L | M | A | B | C | D | E | F | G |
| MN | G | H | I | L | M | A | B | C | D | E | F |
| OP | F | G | H | I | L | M | A | B | C | D | E |
| QR | E | F | G | H | I | L | M | A | B | C | D |
| ST | D | E | F | G | H | I | L | M | A | B | C |
| VX | C | D | E | F | G | H | I | L | M | A | B |
| YZ | B | C | D | E | F | G | H | I | L | M | A |
above. If so, the first word in the communication would be rewritten according to the scheme given in the first line, a being replaced by o, and vice versa, b by p, and so on. The second word would be rewritten according to the scheme in the second line, and so on.
- The key is given, but without explanation, in Juniper Hall, by C. Hill, London, 1904, p. 13.
One of the modern systems is the five digit code-book cipher, to which I have already alluded. According to the general belief, it is frequently employed in certain official communications at the present day. A code dictionary is prepared in which every word likely to be used is printed, and the words are numbered consecutively 00000, 00001, . . . up, if necessary, to 99999. Thus each word is represented by a number of five digits, and there are such numbers available. The message is first written down in words, each word being replaced by the number corresponding to it. To each of these numbers is added some definite prearranged clue-number—the words in the dictionary being assumed to be arranged cyclically, so that if the resulting number exceeds it is denoted only by the excess above . The resulting numbers are sent as a message. On receipt of a message it is divided into consecutive groups of five numbers, each group representing a word. From each number is subtracted the prearranged clue-number, and then the message can be read off by the code dictionary. When a code message is published by the Government receiving it, the construction of the sentences is usually altered before publication, so that the key may not be discoverable by anyone in possession of the code-book or who has seen the cipher message. This is a rule applicable to all ciphers and ciphers.
This is a cipher with symbols, and as each symbol consists of five digits, a message of words is denoted by digits, and probably is not longer than the message when written in the ordinary way. Since however the number of words required is less than , the spare numbers may be used to represent collocations of words which constantly occur, and if so the cipher message may be slightly shortened.
If the clue number is the same all through the message it would be possible by not more than trials to discover the message. This is not a serious risk, but, slight though it is, it can be avoided if the clue number is varied; the clue number might, for instance, be 781 for the first three words, 791 for the next five words, 801 for the next seven words, and so on. Further it may be arranged that the clue numbers shall be changed every day; thus on the seventh day of the month they might be 781, 791, &c., and on the eighth day 881, 891, &c., and so on.
This cipher can however be further improved by inserting at some step, say after each th digit, an unmeaning digit. For example, if, in the original message written in numbers, we insert a 9 after every
seven digits we shall get a collection of words (each represented by five digits), most of which would have no connection with the original message, and probably the number of digits used in the message itself would no longer be a multiple of 5. Of course the receiver has only to reverse the process in order to read the message.
It is however unnecessary to use five symbols for each word. For if we make a similar code with the twenty-six letters of the alphabet instead of the ten digits, four letters for each word or phrase would give us , that is, 456976 possible variations. Thus the message would be shorter and the power of the code increased. Further, if we like to use the ten digits and the twenty-six letters of the alphabet—all of which are easily telegraphed—we could, by only using three symbols, obtain , that is, 46656 possible words, which would be sufficient for all practical purposes.
This code, at any rate with these modifications, is undecipherable by strangers, but it has the disadvantages that those who use it must always have the code dictionary available, and that it takes a considerable time to code or decode a communication. For practical purposes its use would be confined to communications which could be deciphered at leisure in an office, It is especially suitable in the case of communications between officials, each supplied with a competent staff of secretaries or clerks—as from an ambassador to his chief, or a commander in the field to his war office. It is an excellent example of a cipher of the first type, but it is not clear that it possesses any superiority over some of the simple ciphers of the third type.
One of the best known writers on the subject of cryptographs and ciphers is E.A. Poe, indeed probably a good many readers have made their first acquaintance with a cipher in his story of The Gold Bug, the interest of which turns on reading a simple cipher of the first type. In earlier times J. Tritheim of Spanheim, G. Porta of Naples, Cardan, Niceron, and J. Wilkins occupied much the same position, while whenever ciphers were freely used skilful decipherers seem to have arisen.
Poe wrote an essay on cryptography in which he said that it may be roundly asserted that human ingenuity cannot concoct a cipher which human ingenuity cannot resolve—a conclusion which is hardly justified by the known facts. In an earlier article he once made a similar remark so far as ciphers of the first class are concerned, with the implied limitation that only 26 symbols may be used. In this sense the observation is correct. His assertion excited some attention, and numerous
communications in cipher were sent to him. More than one of his correspondents did not play the game fairly, not only employing foreign languages, but using several different ciphers in the same communication. Nevertheless he resolved all except one; and he proved that this last was a fraud, being merely a jargon of random characters, having no meaning whatever.
CHAPTER XII.
HYPER-SPACE†.
I PROPOSE to devote the remaining pages to the consideration, from the point of view of a mathematician, of certain properties of space, time, and matter, and to a sketch of some hypotheses as to their nature. I shall not discuss the metaphysical theories that profess to
† On the possibility of the existence of space of more than three dimensions see C.H. Hinton, Scientific Romances, London, 1886, a most interesting work, from which I have derived much assistance in compiling the earlier part of this chapter; his later work, The Fourth Dimension, London, 1904, may be also consulted. See also G.F. Rodwell, Nature, May 1, 1873, vol. VIII, pp. 8, 9; and E.A. Abbott, Flatland, London, 1884.
The theory of Non-Euclidean geometry is due primarily to Lobatschewsky, Geometrische Untersuchungen zur Theorie der Parallellinien, Berlin, 1840 (originally given in a lecture in 1826); to Gauss (ex. gr. letters to Schumacher, May 17, 1831, July 12, 1831, and Nov. 28, 1846, printed in Gauss’s collected works); and to J. Bolyai, Appendix to the first volume of his father’s Tentamen, Maros-Vásárcely, 1832; though the subject had been discussed by J. Saccheri as long ago as 1733: its development was mainly the work of G.F.B. Riemann, Ueber die Hypothesen welche der Geometrie zu Grunde liegen, written in 1854, Göttinger Abhandlungen, 1866–7, vol. XIII, pp. 131–152 (translated in Nature, May 1 and 8, 1873, vol. VIII, pp. 14–17, 36–37); H.L.F. von Helmholtz, Göttinger Nachrichten, June 3, 1868, pp. 193–221; and E. Beltrami, Saggio di Interpretazione della Geometria non-Euclidea, Naples, 1868, and the Annali di Matematica, series 2, vol. II, pp. 232–255: see an article by von Helmholtz in the Academy, Feb. 12, 1870, vol. I, pp. 128–131. Within the last twenty-five years the theory has been treated by several mathematicians.