HOME

TheInfoList



OR:

The trifid cipher is a
classical cipher In cryptography, a classical cipher is a type of cipher that was used historically but for the most part, has fallen into disuse. In contrast to modern cryptographic algorithms, most classical ciphers can be practically computed and solved by hand. ...
invented by
Félix Delastelle Félix-Marie Delastelle (2 January 1840 – 2 April 1902) was a French cryptographer, best known for inventing the bifid cipher, first presented in the ''Revue du Génie civil'' in 1895 under the name of "cryptographie nouvelle". This cipher combin ...
and described in 1902. Extending the principles of Delastelle's earlier
bifid cipher In classical cryptography, the bifid cipher is a cipher which combines the Polybius square with transposition, and uses fractionation to achieve diffusion. It was invented around 1901 by Felix Delastelle. Operation First, a mixed alphabet Po ...
, it combines the techniques of
fractionation Fractionation is a separation process in which a certain quantity of a mixture (of gases, solids, liquids, enzymes, or isotopes, or a suspension) is divided during a phase transition, into a number of smaller quantities (fractions) in which the ...
and transposition to achieve a certain amount of confusion and diffusion: each letter of the ciphertext depends on three letters of the plaintext and up to three letters of the key. The trifid cipher uses a table to ''fractionate'' each plaintext letter into a
trigram Trigrams are a special case of the ''n''-gram, where ''n'' is 3. They are often used in natural language processing for performing statistical analysis of texts and in cryptography for control and use of ciphers and codes. Frequency Contex ...
, mixes the constituents of the trigrams, and then applies the table in reverse to turn these mixed trigrams into ciphertext letters. Delastelle notes that the most practical system uses three symbols for the trigrams:
In order to split letters into three parts, it is necessary to represent them by a group of three signs or numbers. Knowing that ''n'' objects, combined in trigrams in all possible ways, give ''n'' × ''n'' × ''n'' = ''n''3, we recognize that three is the only value for ''n''; two would only give 23 = 8 trigrams, while four would give 43 = 64, but three give 33 = 27.


Description

As discussed above, the cipher requires a 27-letter mixed alphabet: we follow Delastelle by using a plus sign as the 27th letter. A traditional method for constructing a mixed alphabet from a key word or phrase is to write out the unique letters of the key in order, followed by the remaining letters of the alphabet in the usual order. For example, the key FELIX MARIE DELASTELLE yields the mixed alphabet FELIXMARDSTBCGHJKNOPQUVWYZ+. To each letter in the mixed alphabet we assign one of the 27 trigrams (111, 112, …, 333) by populating a 3 × 3 × 3 cube with the letters of the mixed alphabet, and using the
Cartesian coordinates A Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, measured in t ...
of each letter as the corresponding trigram. From this cube we build tables for enciphering letters as trigrams and deciphering trigrams as letters: The encryption protocol divides the plaintext into groups of fixed size (plus possibly one short group at the end): this confines encoding errors to the group in which they occur, an important consideration for ciphers that must be implemented by hand. The group size should be
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
to 3 to get the maximum amount of diffusion within each group: Delastelle gives examples with groups of 5 and 7 letters. He describes the encryption step as follows:Delastelle, p. 102: "Nous commençons par inscrire ''verticalement'' sous chaque lettre…"
We start by writing ''vertically'' under each letter, the numerical trigram that corresponds to it in the enciphering alphabet: then proceeding ''horizontally'' as if the numbers were written on a single line, we take groups of three numbers, look them up in the deciphering alphabet, and write the result under each column.
For example, if the message is '' aide-toi, le ciel t'aidera'', and the group size is 5, then encryption proceeds as follows: ''a i d e-t o i l e c i e l t'a i d e r a'' 1 1 1.1 2 3 1 1.1 2 1 1 1.2 1 1 1 1.1 1 3.2 3 1.1 1.2 1 1.2 2.1 1 1.3 2.3 1 3.3 1 1.3 2 2 1 1.3 2 1 1 2.3 2 1 1 3.2 2 1 F M J F V O I S S U F T F P U F E Q Q C In this table the periods delimit the trigrams as they are read horizontally in each group, thus in the first group we have 111 = F, 123 = M, 231 = J, and so on.


Notes


References

* * {{Cryptography navbox , classical Classical ciphers