WeRead Powered by ReaderPub
Elementary cryptanalysis cover

Elementary cryptanalysis

Chapter 17: CHAPTER XV Miscellaneous Phases of Vigenère Decryptment
Open in WeRead

Explore more books like this:

About This Book

A practical instructional treatment of classical cryptanalysis that concentrates on techniques for analyzing and solving encrypted messages rather than codes or chemical and mechanical devices. It surveys concealment methods, transposition and geometrical systems, irregular and columnar types, single- and polyalphabetic substitution (including Vigenère, Gronsfeld, Beaufort, and Playfair), periodic-cipher analysis such as the Kasiski method, auto-encipherment, and approaches for attacking unknown ciphers. Each topic is presented with explanatory discussion, worked examples, and practice cryptograms, while appendices provide frequency tables, digram/trigram data, common-word lists, charts, and a bibliography to support statistical and linguistic decryptment methods.

116.  By NEMO.  (A Vigenère?  Or a snare and a delusion?)
W L P C V   M O G K E   E I F M U   R W W F H   V M F F W   E Y X A V   U B I C Z
O J M L C   H V X Y F   K S C U S   X I L M G   B Q I D B   W I F G B   I Q Z G Z
H F J Y P   M K I G V   P T W Y K   W Z H W M   Z H W I F   A P S D N   W F H E D
S C X A V   O E B Y Y   O K C O Y   U I H U J   L H U D X   P P W V V   H P F W Y
L G F B V   E J M A A   G B P I E   B A V U V   Q L Z N L   P W A J W.

117.  By NEON.  (U.S.Army Cipher Disk.  Surely not an advertisement?)
D J T X J   M H L M K   O M F D T   F N E U I   G D D N A   A U S N S   A C F G Y
M Z Y A Q   A N M W U   W S R B R   F J J Q S   K A Y B A   N B L T O   J E R K S
N W X A G  T J L Z Y  S T V A R  B X L K N  R L V D U  U F O F A  K Z L W Y  T E E W.

118.  By TITOGI.  (What!  Another Vigenère?  Some collusion here!)
D W P W Z   T C G H H   Z B B V W   F B H I F   W Q B L L   J D Z R G   U M M E S
W B D W L   J K X I F   Y Z D G K   Y I O I K   D W P M F   H C M S F   Q G C E L
J I I H W   A M I W L   J Z I W S   W K V W E.

119.  By THE ADMIRAL.  (Vigenère).

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

120.  By THE ADMIRAL.  (Beaufort).

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

121.  By DOR.  (Another "Aristocrat." - Not hard.  No keyword).

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

CHAPTER XV
Miscellaneous Phases of Vigenère Decryptment

When a Vigenère cryptogram is very short, its alphabets are no longer readily identified by their graphic appearance. But its period, in the majority of cases, can still be determined, and it still remains true that the identification of one letter identifies a whole alphabet. The example of Fig. 111 contains only 30 letters. With this cryptogram in the form shown at (a), we are still dependent upon the search for trigrams and short words, but the case is modified by the presence of a repeated trigram. Unless this repetition, ZIL, is accidental, it indicates a maximum period of 12, and the cryptogram is long enough to provide another interval 12, with another trigram, EUK, upon which any key-fragment brought out at ZIL can be tested in order to see whether or not it will bring out another good sequence. When it finally does, the intermediate trigrams (those at intervals 6 or 4) can be tried, in the hope of finding a shorter period.

                               Figure 111
(a)                                          (b)
   Z I L T F   R U I Y T   J R Z I L            1  2  3  4  5  6     x             x             x              Z  I  L  T  F  R
                                                U  I  Y  T  J  R
     K A R O I   E A O A E   U K L W K.         Z  I  L  K  A  R
             x                                  O  I  E  A  O  A
                                                E  U  K  L  W  K

But assuming a case in which we have no repeated sequences at all, we almost never meet with a Vigenère cryptogram in which there are no repeated single letters belonging to a same cipher alphabet. These repeated single letters can be tabulated with their separating intervals, and these intervals factored in exactly the same way as intervals between repeated sequences. The evidence, perhaps, will be less clear, and less reliable, than that obtained through repeated sequences; as with sequences, the less frequent letters will usually be more informative than those which are leaders. To illustrate, with our given example, the single letter I has shown the interval 6 three times, the single letter R has shown it twice, and the single letters L and Z have shown its multiple. In the average case, the period will not be so clearly evident as here; however, the example was not in any way manipulated in order to produce this evidence.

Once the cryptogram of (a) can be rearranged as at (b), we no longer have before us the piecemeal decipherments and piecemeal tests which are necessary where a period is likely to be anything at all. Whatever key-fragments can be brought out at ZIL, or on another trigram, need be tested only on the three columns which contain the trigram. Even presuming that the evidence has been inconclusive between two or more periods, the cryptogram, necessarily a short one, can be written into each of these probable periods, and the two or more resulting blocks, standing side by side, can be considered more or less simultaneously. Here, with our period determined as 6, the columns of (b) are very short, and the number of trials and erasures should not be many.

For this kind of case, however, many solvers have a preference for the purely mechanical method which is detailed in Fig. 112. Sheet 1 of this figure has been prepared from the first column of our cryptogram, which included the letters Z U Z O E. Sheet 2 has been prepared from the second column, which included the letters I I I I U; and sheet 3 has been prepared from the third column, which included the letters L Y L E K. In each case, the column of cryptogram letters, as it first stands, is also the A-decipherment. With each letter used as a point of beginning, a series of normal alphabets may be laid out, as in the figure, and the resulting 25 new columns on every sheet will show the other 25 possible decipherments. But if these decipherments have been caused to progress in the normal alphabetical direction,

                              Figure 112
Sheet No. 1  (For Column 1 of b, preceding figure)

      KEYS:     a z y x w v u t s r q p o n m l k j i h g f e d c b                Z A B C D E F G H I J K L M N O P Q R S T U V W X Y
                U V W X Y Z A B C D E F G H I J K L M N O P Q R S T
                Z A B C D E F G H I J K L M N O P Q R S T U V W X Y
                O P Q R S T U V W X Y Z A B C D E F G H I J K L M N
                E F G H I J K L M N O P Q R S T U V W X Y Z A B C D

Sheet No. 2  (For Column 2 of b, preceding figure)

      KEYS:     a z y x w v u t s r q p o n m l k j i h g f e d c b                I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
                I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
                I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
                I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
                U V W X Y Z A B C D E F G H I J K L M N O P Q R S T

Sheet No. 3  (For Column 3 of b, preceding figure)

      KEYS:     a z y x w v u t s r q p o n m l k j i h g f e d c b                L M N O P Q R S T U V W X Y Z A B C D E F G H I J K
                Y Z A B C D E F G H I J K L M N O P Q R S T U V W X
                L M N O P Q R S T U V W X Y Z A B C D E F G H I J K
                E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
                K L M N O P Q R S T U V W X Y Z A B C D E F G H I J

and if the cipher is Vigenère, the key-letters which produce these deciphered columns will have to run backward in the alphabet. These can be added at the tops or bottoms of their columns, and can, if desired, be written in red ink, or otherwise distinguished.

Fig. 113 shows what modifications would be necessary if the sheets were being prepared for one of the Beauforts. For the variant Beaufort, the only difference lies in the fact that key-letters must progress in the same alphabetical direction as their decipherments. With the true Beaufort, however, the making of an A-decipherment does not mean a simple copying of cryptogram letters, as in the other two ciphers; this A-decipherment must first be made; after that, the series of normal alphabets can be extended as before, and the key-letters will progress in the same alphabetical direction as their deciphered columns.

Now, assuming that these sheets have actually been prepared, say on quadrille paper, the various columns of decipherment may be examined, and a check-mark placed beside each column in which the series of letters appears to represent a “good” decipherment. With longer columns, those may be checked which contain the largest percentages of letters E T A O N I R S H, without too many of the letters J K Q X Z; with shorter columns, perhaps those are “best” in which any repeated letters are chiefly vowels, it being remembered that when the cryptogram contains repeated sequences, as well as repeated single letters, the possible identity of these repeated digrams or trigrams must also be taken into consideration. With all of the apparently good columns checked for attention, sheet 1 may be creased vertically so as to place any desired column on the extreme right, and this column may then be laid directly against any desired column of sheet 2 for an observation of the resulting digrams. If these appear to be satisfactory, then sheet 2 may also be creased vertically, and the series of apparently good digrams may be laid directly against any desired column of sheet 3 for an observation of the resulting trigrams. And so on, if desired, to a possible sheet 4, or 5, or 6, though, as a rule, the first three sheets will be found sufficient. While the method, as indicated, is intended to be mechanical, that is, largely visual, it would be possible, where uncertainty exists between two given combinations, to copy these and subject them to a digram test. But this should not be necessary in a case where key-letters, as well as their

                              Figure 113
If column Z U Z O E were VARIANT:     If column Z U Z O E were BEAUFORT:

  KEYS:   a b c d e f g .....           KEYS:   a b c d e f g .....
          Z A B C D E F .....               Z - B C D E F G H .....
          U V W X Y Z A .....               U - G H I J K L M .....
          Z A B C D E F .....               Z - B C D E F G H .....
          O P Q R S T U .....               O - M N O P Q R S .....
          E F G H I J K .....               E - W X Y Z A B C .....

deciphered columns, are expected to set up good combinations in order to form a plaintext key-word.

An interesting version of this method, as shown by Admiral Elliott Snow, included the following variations: To begin with, in extending the alphabets, the decryptor omits altogether the letters J K Q X Z, and perhaps one or two others of extremely low frequency, simply leaving the blank spaces which indicate their alphabetical positions. This makes the work more rapid, and, in addition, the presence of these blank spaces in any column of decipherment, advertises at once that the column is probably not a very good one. But Admiral Snow’s columns were not columns; they were rows. A given series of letters: as Z U Z O E of our foregoing sheet 1, is laid out horizontally, and its decipherments are extended vertically. The spacing on each row is arranged to correspond with the period; that is, the letters Z U Z O E, instead of being continuous, are spaced six columns apart if the period is 6, and their decipherments, of course, are spaced in the same way. The sheets may now be creased horizontally between rows, and one sheet placed against another in such a way that the resulting digrams are all standing on diagonals, but have appeared at exactly their cryptogram distance apart. The student should experiment with both arrangements and decide which one he likes.

It has been pointed out by C. A. Castle, another of our members, that the foregoing method will find its chief application, not on a single cryptogram, but as applied to a case which, so far, we have not considered in connection with the substitution ciphers: One in which the decryptor has in his possession five or six cryptograms, all very brief, but all enciphered with the same key. Here, we have the common practical case, to be handled in somewhat the same way as the last of our transposition examples; the cryptograms can be written one below another, thus forming a series of columns in which every column has been enciphered with the same cipher alphabet. If this case happens to involve a comparatively short period, it is possible to take intervals between repeated sequences found in two different cryptograms, using the intervals indicated by the number of columns between the first letter of one sequence and the first letter of its repetition. Castle’s example, however, was not based on a short key, but upon an extremely long one, and his five or six messages were merely fragments, each one of which was known to be the beginning of an English sentence. In the English language, about half of all initial letters used are found in the group T A O S H I and more than another one-fourth are found in the group W C B P F D M. Thus, having a series of beginnings in which the first column will include only initial letters, the number of truly acceptable decipherments on any sheet 1 will usually be quite limited. In addition, with vowels known to have a fondness for second and third positions in words, there should be little difficulty in selecting decipherments from sheets 2 and 3.

 

While we have described this device as having been written out on sheets of paper, there are many persons who prefer to have at hand a series of cardboard strips which will set up the “sheets” mechanically. If each of the strips carries

                                   Figure 114
                         One Form of "DECRYPTING SLIDE"         C. STANLEY LAMB
For VIGENÈRE, the "Decrypting Alphabet" runs backward:
                                                                                            | a z y x w v u t s r q p o n m l k j i h g f e d c b |      (  A B C D E F G H I J 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 J K L M N O P Q R S T U V W X Y Z A B C D E ...      (  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z A B C D E F G H I ...                   | a b c d e f g h i j k l m n o p q r s t u v w x y z |
                                                                         As this is shown, it has been set for the decipherment of a trigram  H D G,  and
every possible decipherment can be read from the slide without changing its
present adjustment.  The entire list of frequent trigrams can be used as trial keys:

Trial Keys:           T H E  A N D  T H A  E N T  I O N  T I O  F O R  (Etc.)
                      H D G
Fragment of True Key: O W C  H Q D  O W G  D Q N  Z P T  O V S  C P P (Etc.)

the normal alphabet written twice in succession, it is possible to adjust five of the strips so as to place the letters Z U Z O E one below another in the form of a column and automatically set up the other 25 columns. The strips can be loose, or may form part of a slide. Slides, in fact, may be used for many purposes, and are well worth preparing for any kind of cipher which the decryptor expects to encounter a great many times. The members of the American Cryptogram Association, who solve a great many Vigenères, Beauforts, and so on, as a matter of recreation, have practically all “invented” slides (or tableaux) which will, to some extent, do away with the irksome task of carrying out a trigram-search. These are prepared in various ways, and variously used, though the principle for all is about the same as that indicated in Fig. 114. They are usually referred to as decrypting slides, and the single stationary alphabet, sometimes a list of key-letters and sometimes not, will be called “the decrypting alphabet.” C. Stanley Lamb, who is by no means the only “inventor” of the device illustrated, has this in several different forms, according to the purpose for which he intends to use it. Notice that the card, as we have placed it, shows the stationary single alphabet running contrary to the others, for use on the Vigenère cipher, and that this card need merely be reversed in order to have a single stationary alphabet running parallel to the others, for use on the two Beauforts. As to the sliding double alphabets, there may be as many of these as the operator feels like setting up; if the device is being used to assist in the trigram search, three will be needed.

To explain its use: The decryptor here is dealing with a sheet of trigrams. Each one of these trigrams is to be deciphered as THE, AND, THA, and so on, following the list of normally frequent trigrams, and the resulting key-fragments are to be written down for comparison with one another, in the hope that some two or more will be duplicates, or will contain overlapping letters. The first of these cipher trigrams is HDG. These three cipher-letters, found on the three slides, are placed, in order, below A. Now, on the first of the slides, every possible decipherment for H is standing opposite its key-letter, found in the “decrypting alphabet”; on the second slide, every possible decipherment for D is standing opposite the the proper key-letter; and on the third slide, every possible decipherment for G. To know, then, what key-letters will be deciphered by THE, find T on the first slide and note key-letter O; find H on the second slide and note key-letter W; find E on the third slide and note key-letter C; the complete key-fragment is OWC. This may be written down, Then, without changing the adjustment of the device: For AND, key-fragment HQD, and so on down the list.

Where the cipher is Vigenère, the text-letters may be found in the “decrypting alphabet” and their keys on the slides, without changing results. But with either of the Beauforts, a key is specifically a key and not a text-letter. Thus, when the card is reversed, and the same process applied for one of the Beauforts, the student must be careful as to where he finds his letters T H E in each of the two ciphers. This peculiar relationship of Vigenère-variant-Beaufort is not hard to untangle if all three of the encipherments are considered to be purely mathematical operations of addition and subtraction. If we must add two numbers, as 5 and 10, it makes no difference whether we call it the sum of 5 plus 10 or the sum of 10 plus 5. But where we must perform a subtraction, there are two separate cases.

In straight Vigenère encipherment, the process is addition, in which text-letters may be considered to have the values 1 to 26 (their serial positions in the normal alphabet), while key-letters may be considered to have the values 0 to 25 (the amount of alphabetical shift represented by each one). Thus, the encipherment of J by P (10 plus 15) will not result differently from the encipherment of P by J (16 plus 9); in both cases, we obtain Y, alphabetical value 25.

In variant Beaufort, we have one of the subtractions: Message minus key, with the occasional necessity for “borrowing” 26 in order to make a subtraction possible. Thus, J enciphered by P (10 minus 15) does not give the same result as P enciphered by J (16 minus 9). In the first case (after borrowing 26), we obtain U, or 21, while in the other case we obtain G, or 7.

In the true Beaufort, we have the other subtraction: Key minus message. This time, we value the key-letters 1 to 26, and the text-letters 0 to 25. Thus, J enciphered by P (9 taken from 16) results in G, or 7, while P enciphered by J (16 taken from 9) results in U, or 21. Our results, then, are exactly the reverse of those obtained in the other subtraction.

If these mathematical comparisons be understood, or simply kept in mind, it will always be possible, whenever a decryptment process has been explained in connection with only one of the encipherments, to examine its “mathematical” details and learn from these in just what respects it would have to be modified in order that it may be applied with equal success to the other two encipherments. There is another interesting possibility which may have escaped the student’s notice. If he will turn back to Fig. 98, in which the same message, using the same key, was enciphered in both of the Beauforts, one encipherment coming out as K K Z B B I Z. . . . . and the other as Q Q B Z Z S B. . . . . , he will notice that these two cryptograms are complementary from beginning to end. If we saw any reason for doing so, we might convert either one of the Beaufort cryptograms to the other form, and apply its probable word with its own slide.

 

Now, having seen the great vulnerability of the famous “indecipherable cipher,” suppose we glance at some of the devices which have been used for doing away with its periodicity. One such device, that of auto-encipherment (autokey, autoclave), has been given its own separate chapter (the one immediately following), not because of its value as a cipher, but because of the very interesting decryptment problem it presents. A second device, the details of which may be examined in Fig. 115, consists in the use of a very long nonrepeating key, the popular name for which is “running key.” The value of such a key, for practical purposes, we have already seen; it was a key of this kind which Castle had used on his five or six cryptogram-beginnings. In single examples, however, it gives more trouble. Unless there is a probable word, its message and key must be dug out bit by bit, and if the encipherment is Vigenère, any recovered fragments can belong equally well to the

                  Figure 115
        Vigenère with a "Running Key"
Key-letters:        M Y C O U N T R Y T I S ...
Plaintext letters:  S E N D S U P P L I E S ...
Cryptogram:         E C P R M H I G J B M K ...

message or to the key. However, with its key known to be purely plaintext, no fragments need be considered except those which are usable combinations, and since the “running key cipher” makes a fascinating puzzle, a specimen has been included among the practice cryptograms. The original of this, apparently, was the Hermann cipher. This employed a slide which was identical with the Saint-Cyr slide except that the stationary alphabet carried an extra cell (position) marked “index” to be used instead of the Saint-Cyr index A. As the writer saw this, the index-cell was standing just ahead of A, so that the resulting encipherment would have been that of a Saint-Cyr slide on which the letter Z was serving as index-letter.

Of other devices aimed at destroying periodicity, quite a few have been based in some way on key-interruption. A key-word is selected, as INDEPENDENCE, but the encipherer breaks off before completely using his rotation, so that the completed cryptogram will be enciphered very irregularly by such a key as INDEP INDEPEND I IN INDEPENDENC IND INDEPEN. . . . . . Sometimes this is found as a word-spacing device, the key beginning over with each new word, though naturally not with word-separations showing in the cryptograms. But in the average case, the key-interruption takes place at the discretion of the encipherer; sometimes the agreement with his correspondent allows him to break off as he pleases without any sort of signal, leaving the decipherer to discover the interruptions through the fact that he can no longer decipher; again, he may use an indicator, as J. In the latter case, he must encipher any J’s which may happen to occur in his message by using the I-substitute; then, whenever he decides to break the key, he first enciphers a J. Thus, whenever the decipherer brings out the letter J, he knows that his key is to begin over with the encipherment of the next letter. It will be noticed that in all of these cases, the decipherer will have to do his work one letter at a time.

There is another of these devices which apparently destroys periodicity and is aimed at throwing all of this onerous work upon the shoulders of the decryptor without at the same time punishing the legitimate decipherer. This consists in shortening the two alphabets of the key, so as to leave some extra letter, which will never be used in any cryptogram. Encipherment, in this case, is accomplished in the regular way, producing a periodic cryptogram. The extra letter may then be inserted at points throughout the cryptogram wherever it can do the most harm. The decipherer, knowing that this one letter is always null, need merely erase it. But if this device is to be really useful, the omitted letter must not be always the same, and this trouble can be overcome as follows: In the shortening of the plaintext alphabet, we omit always the unwanted letter, as J. But in shortening the cipher alphabet, we omit first one letter and then another, according to agreement, and insert J in its place. The decipherer, knowing what letter is null, erases it; but the decryptor, granting that he knows what the process is, will still have to experiment with various letters before he learns which one (or more) of the 26 is the null of the moment.

Shortened alphabets are not uncommon in ordinary use. We meet with 25-letter alphabets in European examples, the letter W having been omitted for telegraphic reasons. This case can usually be distinguished from the one which precedes by the fact that the letter W is never found in a frequency count, and it presents only the minor trouble that the ordinary 26-letter slide will not make the decipherments, so that it becomes necessary to prepare another on which the letter W is not present. This case can, of course, be simulated by making use of a 24-letter alphabet.

These devices, taken as a whole, have added little, if at all, to the security of the straight-alphabet ciphers, though, for the most part, they have succeeded admirably in rendering their ciphers totally unfit for general purposes. Considered as single examples, they can, of course, prove troublesome. We trust that this will not be the case with some one or two of the appended practice cryptograms, but if so, we recommend that the student postpone them for a later investigation. Concerning example No. 122, he may find that some of the material presented in Chapter XVI applies also to the “running key” encipherment; with others, a trigram-search may assist in developing the interrupted key-word; and in one case, a clever decryptor should find a way for applying his Kasiski method.

122.  By SABIO.  (Vigenère with Running Key.  SENT,  AGENT,  STOP,  IMPREGNATED).
A R U N N   I N G K E   Y S O Q M   A V Q X K   L U E R S   Z S S R F   A H A I V
X W E T N   K Z Q N V   R A G W V   E T F W N   L K A T A   I B S Z U   H P E X U
B W W A S   P N F F C.    (These are a trifle tedious, but not inhuman).
                                 •   •  •  •             •  ••  •• ••

123.  By NEON.  (Porta, with key-interruption.  Plenty of trigrams!)
A P V K W   T P K P V   Y G Q P G   A K J Z W   J N I X J   U Q O U K   P V W F U
R F X N K   C K P R K   Q K W F U   R G J O V   Z O K G X   J V Q S W   T F K D L
L Y Q L X   Z E F L Y   U J V Z C   X G Q L J   M T X W K   K P V T V   B Y K X P
F J Z Q X   B V C O V   V H X Z K   J Z U Y.

124.  By WHOSIT.  (Beaufort, with key-interruption. THEY, WHEN, IN, ON, UP, etc).

M X Y F U   H P M J B   C X O C K   A L Q E D   B Q A E P   R B Z L G   L W M J B
Z Z C S A   A L A O E   K K C W L   L J B P H   U W B L F   Q O R B Z   L A O E M
A L O K F   P V H Y U   Y H Y J L   X O L X Z.

125.  By B. Natural.  (Gronsfeld, with key-interruption).

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

126.  By TRYIT.  (Gronsfeld, with interruptors.  MY, TO, THE, OF, IS, BE, WHICH).

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

127.  By B. NATURAL.  (Vigenère.  One letter reserved as interruptor.  Look out!)

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

CHAPTER XVI
Auto-Encipherment

The term autokey (autoclave; “the autokey cipher”), as commonly used, refers to the kind of encipherment shown in Fig. 116, in which a message becomes its own key for applying some one of the multiple-alphabet ciphers — usually the Vigenère. It will be noticed from the figure that the auto-encipherment must be “primed” with a conventional key; and whenever the words key-length, period, and so on, are used in connection with auto-enciphered cryptograms, their actual reference is to the short initial key. A more accurate term would seem to be group-length. But that a term is needed for referring to something akin to the period of the ordinary Vigenère cryptogram can be seen when we consider the mechanics of decipherment:

Our present initial key, COMET, key-length 5, serves to decipher only one group of that length. The five key-letters obtained from this first decipherment will serve to decipher only one more group; from this, another five key-letters are obtained, and will decipher a third group, and so on. But our group-length, sometimes

                                Figure 116
Vigenère Autokey:   C O M E T/S E N D S U P P L I E S T O M O R L E Y S
Plaintext:          S E N D S U P P L I E S T O M O R L E Y S S T A T I
CRYPTOGRAM:         U S Z H L M T C O A Y H I Z U S J E S K G J E E R A

referred to as “period,” includes five individual series of letters, any one of which can be enciphered and deciphered independently of the rest. That is, beginning with C, or O, or M, or E, or T, and taking each fifth letter, it is possible to proceed straight through to the end, enciphering or deciphering only this one series, or “column.” It will be noticed from the foregoing that the decipherer gets the short end of the bargain. The encipherer knows in advance what the key is, and, to some extent, can apply one cipher alphabet at a time; the decipherer knows only the key to the first group; the rest he must ferret out for himself.

There is, however, a second form of autokey encipherment in which the respective difficulties of encipherer and decipherer would be reversed. This form of auto-encipherment, which can be seen in Fig. 117, makes use of a preliminary key, as in the regular form, but follows this with the enciphered text instead of with the plaintext. Such an encipherment results, occasionally, from the mechanical construction of a cipher machine, and in this case, where the 26 cipher alphabets are in mixed order, and unknown to the decryptor, may present an interesting decryptment problem. But where the cipher is Vigenère (or any other in which the decryptor possesses the full set of cipher alphabets), it can hardly be argued that there is any great problem about a cryptogram which carries its key in full view. We will confine ourselves, then, to the usual form of autokey, as first explained, beginning our studies with a brief glance at the two common practical cases, that of accumulated cryptograms, and that of probable words. Procedure, in the former case, is self-evident. Possessing several cryptograms all initiated with the same preliminary key, we may write their beginnings one below another to form columns, and the first few of these columns will constitute an ordinary case of Vigenère in which every message is known to be the beginning of a sentence. With beginnings discovered, a little industry accomplishes the rest.

The case of probable words, on the other hand, presents some interesting possibilities inherent in the auto-encipherment itself. When the probable word is short (or if a search is to be made for normally frequent trigrams), the task of bringing out and testing the possible key-fragments is made much less onerous by the fact of the purely plaintext key. Being sure of an abundance of excellent sequences, we need consider none but the very best of the deciphered fragments; and for any one considered, the trials need be made only within a very short range of the spot at which it was found. All of this work may be done directly on the cryptogram. A correct sequence, correctly applied, can be followed out in both directions, and will yield, in full, several of the “columns,” and several consecutive letters of the initial key. But if it so happens that the probable word is longer than the initial key, its first few letters must become the keys for enciphering its last few. Consider, for instance, the word SIMPLICITY, which has a length of ten letters. If the preliminary key contains only five letters, then, beginning at -ICITY, the keys SIMPL- will begin to encipher, causing a certain long cryptogram-sequence which, for Vigenère, will always be A K U I J. If the preliminary key has

                          Figure 117
     Key:   C O M E T/  U S Z H L   O H O S T   .....
            S E N D S   U P P L I   E S T O M   .....
            U S Z H L   O H O S T   .....

Note that the cryptogram itself is the key, except that the
first five letters are missing.  To decrypt, With any
alphabet, need merely find where to begin using it!

six letters, the same word causes a sequence U Q F N when the cipher is Vigenère; if it has seven letters, the cryptogram-sequence will be A B K; and even an eight-letter key brings out one certain digram, L G. Thus, knowing what the cipher is, and having at our disposal any comparatively long probable words, we may write out these sequences in advance and be ready to look for them in the cryptograms. In addition to whatever words we consider probable, it is obvious that any other long word may encipher itself in the same way, and, if it is one important to the subject matter, is likely to be repeated, causing the cryptogram to show a long repeated sequence. Thus, if we find a long repeated sequence in a cryptogram, we are able to try this as a common suffix, TION, MENT, ENCE, ABLE, etc., in the expectation of bringing out some common prefix, CON, PRE, etc.

More fascinating, by far, than its practical aspects, however, are the possibilities presented by the autokeyed cryptogram for analytical attack. The devices immediately to follow are described by General Givierge in his Cours de cryptographie, and are credited by him to Commandant Bassières.

First, it is possible to discover the length of the short preliminary key, or, at any rate, to confine this to certain definite probabilities. This key, as we have seen, governs a definite group-length, or “period.” If this group-length, say, is 5, then, barring the first and final groups, every plaintext letter will be enciphered by the letter standing five positions to its left, and will, in its own turn, serve to encipher the one standing five positions to its right. Since all plaintexts are filled with repeated letters, roughly half of them separated by even intervals, it stands to reason that there will be many occasions on which the letter standing five positions to the left and the one standing five positions to the right will be the same letter. That is, we must often find the encipherment pattern of Fig. 118. Some one letter, as S, is repeated at an interval of exactly twice the group-length, with some other letter, as R, standing at exactly the group-length interval from both of the S’s. The first S enciphers R, and R enciphers the second S. Or, if the repeated letter is T and the intermediate one is L, then T enciphers L, and L afterward enciphers T. Where the cipher is Vigenère, the result, in the cryptogram, is a repeated letter standing at exactly the group-length interval. If the cipher is one of the Beauforts, the same pattern produces a pair of complementary letters separated by exactly the group-length interval.

                    Figure 118
          S . . . . R                  T . . . . L
S . . .   R . . . . S        T . . . . L . . . . T          J . . . . J                  E . . . . E

Now, in order to consider the value of this observation, let us examine the cryptogram of Fig. 119, an autokeyed Vigenère, which, for convenience, is presented in groups of the correct length, 7. According to Bassières, should we inspect this cryptogram for repeated single letters, noting, in each case, the interval of separation, the correct group-length, 7, will be present among those intervals which are noted oftenest, and, in many cases, will be the one which predominates. For making such an examination, perhaps the simplest plan would be that of listing the possible group-lengths at the tops of a series of columns, beginning with group-length 1 and carrying them as far as desired. The counts could then be made by placing a tally mark in the proper column for each time that a given interval is noted. The results of this examination, as compared with the Kasiski examination for a period, may be studied in Fig. 120. At (a), where the leading intervals of our cryptogram have been listed with their frequencies, it is noticeable that the correct group-length, 7, is not represented by the predominating interval or even by the one which is second in frequency; it is merely present among the five leaders. But we find other cryptograms, not necessarily of great length, in which some one letter, as V, will be repeated five or six times in succession at exactly the group-length interval, and its evidence amply confirmed in other repetitions. Then, as at (b),

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

we may find some fairly good clue, leading us to give the first trial to the correct group-length; and again we are left, clueless, to try out five or six different group-lengths before striking the correct one. Results, then, are variable, and the only certainty, at any rate in a short cryptogram, is that of being able to limit the group-length to a given few. With the group-length determined, or with one selected for trial, we may take our choice of two processes.

 

Process 1 (Bassières). With group-length 7, as we have seen, our cryptogram includes seven independent series, or “columns,” of letters. By beginning at the 1st letter, and taking the 1st, 8th, 15th, 22d, etc., letters, we may decipher series 1 independently of the others; or, by beginning at the 2d letter, and taking the 2d, 9th, 16th, etc., letters, we may decipher series 2; and so with the other five series. Many persons, before doing this, will rewrite this cryptogram into seven columns, which permits that the decipherment of a series be done straight down its column, and for that reason the word “column” is sometimes used to describe what we have called here a “series.” In order to understand the first of the Bassières processes, we need consider only series 1, it being understood that whatever applies to any one of the seven series applies equally well to the other six.

                           Figure 120(a)                                                         (b)
  Interval  8, found 8 times         Possible Reason for L C N     "     16,   "   8  "
     "      4,   "   6  "            T H E o r e m/G E T t i..
     "      5,   "   6  "            G E T t i n g T H E b a..
     "      7,   "   6  "            Z L Y . . . . Z L Y . .

Now, considering Fig. 121: If the unknown first key-letter was A, then the first plaintext letter, found by deciphering with key A, was L, and this became the key for enciphering the eighth letter. If the key which enciphered the eighth letter was L, then the eighth letter, found by deciphering with key L, was A, and this became the key for enciphering the fifteenth letter. Following out this decipherment to the end of series 1, we find that the plaintext letters must have been L A B R Z Z B, etc., as given in full in the figure. A glance at the complete series will show that this decipherment is not a particularly good one. If another decipherment be carried out, on the hypothesis that the original first key-letter was B, we obtain the series K B A S Y A A, etc., which starts out fairly well, but which, when completed, will contain two K’s, one Z, two B’s, and one P. If a third decipherment be carried out, on the hypothesis that the original first key-letter was C, we obtain the series J C Z T X B Z, etc., which is a poor decipherment from the beginning. A trial and error method might consist in making these decipherments one at a time directly on the cryptogram, erasing one when it is obviously poor, and trying to add the next series whenever one proves acceptable.

                                    Figure 121
Keys:       A               L               A               B
            L C N D M E K   L C N O Y G T   B G X V N D G   S S H W A W J......
Plaintext:  L               A               B               R

     Series 1, (Key A):    L A B R Z Z B G Q L F R B G H H C Y Z J.

The Bassières process, however, consists in setting up the entire 26 possible decipherments as these are shown in Fig. 122. In this figure, the original cryptogram-letters of series 1 are standing in a column at the extreme left. The 26 possible decipherments are also standing in the form of columns, each decipherment headed by the key with which it was initiated. If the group-length 7 is correct, then one of these 26 columns shows the original plaintext letters.

Now let us examine, not the columns, but the rows, of this tableau, and find out just how troublesome it is going to be to prepare tableaux of the same kind for series 2, series 3, and possibly others. The key-letters, across the top, constitute a normal alphabet, and below this each row contains the 26 decipherments for some one letter of series 1. On the odd-numbered rows, the decipherments for the odd-numbered letters are alphabetically arranged, but progressing in a direction contrary to that of their keys, as if these odd letters represented Vigenère encipherment. On the even-numbered rows, the decipherments for the even-numbered letters are also alphabetically arranged, but are progressing parallel to their keys, as if these even-numbered letters might represent variant Beaufort encipherment. Evidently, then, the A-decipherment is the only one which must actually be carried out; afterward, the preparation of the tableau is a matter of extending alphabets. With similar tableaux prepared for the remaining six series, we have seven sheets, and on each one of these there is one column showing the correct decipherment of the series, headed by the correct key-letter. Thus, our solution is to be the mechanical one of the preceding chapter. On each one of the tableaux, the apparently “good” decipherments may be checked for attention; the sheets may be creased between columns, and the “good” decipherments of one tableau may be placed directly in contact with those of another.

                                    Figure 122
SERIES No. 1, Prepared as a Tableau.  (Corresponds to SHEET No. 1 of Figure 112).

THECIPHER                     The 26 Decipherments, with KeysLETTERS
                A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (Keys)

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

 

Process 2 (Bassières). Fig. 123 shows the second of the Bassières processes. With 7 decided upon as the group-length, we make up a trial key having the right number of A’s, and decipher the cryptogram. The new cryptogram, produced in this way, is periodic, and its period, for Vigenère, will be twice the group-length, in the present case 14. In Fig. 124, where this new cryptogram has been repeated, written into its period, it is possible to check its periodicity: It has two repeated sequences, C J B and W G, at suitable intervals, and while these are very few, their evidence is amply supported by the fact of repeated single letters in every column. When the periodicity is not confirmed in this way, it can be assumed that the chosen group-length was not correct.

The make-up of this new cryptogram is not hard to understand if it is noticed that what we have done is to carry out simultaneously the seven A-decipherments of seven tableaux like that of Fig. 122. We saw there that the odd-numbered letters of a series react as Vigenère encipherment and the even-numbered letters as variant Beaufort. With seven A-decipherments made at once, the same will apply to odd-numbered and even-numbered groups. Thus, our new cryptogram has seven columns enciphered in Vigenère and another seven enciphered in variant Beaufort. The original seven-letter initial key-word will decipher both sets of columns; for the first seven, it must be applied in the Vigenère manner, and, for the other seven, in the variant Beaufort manner.

                                    Figure 123

a a a a a a a   L C N D M E K   A A A L M C J   B G X K B B X   R M K M Z V M
L C N D M E K   L C N O Y G T   B G X V N D G   S S H W A W J   Q E V L H O W
L C N D M E K   A A A L M C J   B G X K B B X   R M K M Z V M   Z S L Z I T K

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

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

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


New Cryptogram:   L C N D M E K A A A L M C J - B G X K B B X...........(Etc.)

As to why this encipherment reduces to alternate Vigenère and variant Beaufort groups, this is best understood by resorting once more to the “mathematical” aspects of the Vigenère cipher. In a previous discussion, we have said that Vigenère encipherment consists in the “addition” of key to message, and that variant Beaufort encipherment (which, in Vigenère, would be decipherment), consists in the “subtraction” of key from message. In the beginning, our plaintext is a series of groups, as A, B, C, D, E, etc. and the first encipherment operation consists in the addition of a key, as X, but only to the first group, A. To encipher group B, we add A; to encipher group C, we add B, and so on, so that when the auto-encipherment is complete, we have a cryptogram in which the groups are made up as follows:

 

1st:2d:3d:4th:5th:
A plus XB plus AC plus BD plus CE plus D. . . . . . (etc.)
           Figure 124
The New Cryptogram from Figure 123
   L C N D M E K A A A L M C J   B G X K B B X R M K M Z V M
   Z S L Z I T K Z Q Y X D L N
   B Z X H Z A O G E T X L U I
   Q C Y K M P X L B A F W A N
   F C W V V G H R P P L S C J   B W G A M Q G G I O T L L I
   H V T C M S U H Z K Q X B L
   C O K A Q P A Y M Y L W K U
   Z W G L S R E J A Y W X M M
   1 2 3 4 5 6 7 1 2 3 4 5 6 7(Vigenère)      (Variant Beaufort)

Now, remembering what the mathematical valves were for key-letters, the trial key, made up entirely of A’s, is made up entirely of zeros. When we subtract zero from the first group, we leave it unchanged, that is, the first cryptogram group is still A plus X (plaintext plus key, or Vigenère). When we subtract A plus X from the second group, this cancels the A of both, and leaves B minus X (plaintext minus key, or variant). When we subtract this from the third group, we cancel the two B’s, leaving C plus X, again Vigenère. When we subtract this from the fourth group, we cancel the two C’s, leaving D minus X, again variant Beaufort. And so to the end. Always we come out with the original plaintext group plus or minus X, the key. Those groups which are plus X are Vigenère, and those which are minus X are variant. And X, in all, is the same: the original preliminary key. A comparison

                                   Figure 125
                    Tables of High-Frequency Co-Efficients    PHILLIP D. HURST
VIGENÈRE (Cipher Letters)
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
E a e h i n o r s t
       ) T h i n o r s t a e
K A a e h i n o r s t
e O n o r s t a e h i
y N n o r s t a e h i
s I s t a e h i n o r
) S i n o r s t a e h
H t a e h i n o r s
R n o r s t a e h i
6 4 1 - 4 4 4 4 4 2 3 4 3 2 3 2 1 4 4 2 2 6 4 2 2 4
 
 
BEAUFORT (Cipher Letters)
True Beaufort: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
...VARIANT... A Z Y X W V U T S R Q P O N M L K J I H G F E D C B
E e a t s r o n i h
) T t s r o n i h e a
K A a t s r o n i h e
e O o n i h e a t s r
y N n i h e a t s r o
s I i h e a t s r o n
) S s r o n i h e a t
H h e a t s r o n i
R r o n i h e a t s
9 4 1 2 4 3 3 3 2 3 3 3 3 4 3 3 3 3 2 3 3 3 3 2 1 4
 
 
PORTA (Cipher Letters)
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
E r s t n o a e h i
       ) T n o r s t e h i a
K A n o r s t a e h i
e O n o r s t h i a e
y N t n o r s h i a e
s I r s t n o a e h i
) S n o r s t e h i a
H r s t n o a e h i
R n o r s t h i a e
3 3 3 2 4 4 3 2 3 4 6 5 3 4 2 3 4 4 - 2 3 3 3 3 3 2