THE ENSYFA MACHINE
A wooden cryptography device using the principles of the ENIGMA machine
This device consists of a set of wooden wheels bearing substitution cipher alphabets around their circumference. The device is operated by hand to produce enciphered text which is practically impossible to decode without knowledge of the enciphering process and its components and settings. Cipher-only cryptanalysis of the code output, although theoretically possible, would be an extremely tedious, difficult and time-consuming process requiring some prodigious computer power to achieve.
Components are as follows :
Shaft : 6 mm diameter wooden dowel
Rotor Bases : Each consisting of 2 x 55 mm diameter MDF discs, 6 mm thick. The base bears one row of 36 characters in scrambled order ( Cipher Text )
Alphabet Ring : 1 x 55 mm MDF disc, bearing the alphabet and numbers 0-9 in order.
[The Alphabet Rings attach to the Rotor base through 3 pins, which fit into a set of 6 holes in the Alphabet Ring. There are 6 possible orientations of the Alpha ring, which are identified by the Cipher text letter aligned with the Alpha Ring A.]
Reflector Ring: 2 discs glued together with reflector lettering, one row for enciphering and one for deciphering.
Input Ring : 2 discs glued together with one row of characters in alphabetical order for text input.
The security of this device is dependent on the secrecy of the Rotor sequences and Keywords, which must be exchanged between the sender and receiver. An example of a code setting is as follows :
ALPHA RINGS D3V
This would indicate that the rotor sequence (Top to Bottom ) is XQT, the X Rotor has the Alpha ring A aligned with D on the Cipher ring, the Q Rotor has A aligned with 3 and the T Rotor has A aligned with V. The keyword in the A---J column is PRH.
With 3 rotors ( selected from 15 ) this allows 2,730 rotor sequences, 216 Alpha ring settings and 46,656 Keywords, a total of 3,924,910,080 possible settings. While this is far too many to analyse manually, it is not too difficult for a computer to check each setting and decipher the code.
The security can be enhanced by increasing the number of rotors, as shown in the table :
In addition, there are 36! ( 3.72 x 10^42 ) possible permutations of characters on each Rotor, and the stepping procedures must be known to the attacker. As long as none of this information is known to the attacker, the system is extremely secure against cryptanalysis, more so than the original German Enigma machine. The WWII codebreakers managed to crack the Enigma system only after years of work by many hundreds of people, and because they were in possession of captured machines and code books. Although rotor-type enciphering machines are no longer considered safe against cryptanalysis for secret military purposes, they are still able to provide a high level of security against casual attackers.
Random Sequences : The Cipher Text strips for the Rotor Wheels, Rotor settings and keywords should all be random sequences, the best way to generate these is by placing small squares of cardboard marked with each of the characters available and draw them at random from a box.
© R.F.Hancock 2019
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: OPERATION OF THE ENSYFA
There would usually be a set of 10 or more different Rotor Wheels, from which the operating set can be selected. Each of these has a detachable Alphabet ring which can be installed in 6 different positions on the Rotor Base. When the rotors have been assembled in the correct locations, the A on the Input Ring is aligned with the J on the Reflector Ring. The Rotor Wheels in between these must then be rotated so that a key letter sequence, eg K4X, is aligned in the same column as the Input A and Reflector J. The Ensyfa is then ready for enciphering the text message. The first letter of the text is located on the Input Ring, and below it on Rotor 3 the Cipher character ( blue ) in the same column is read off. This Cipher character is then located on the Alphabet Ring of Rotor 3 ( red ) and the Cipher character in the same column on Rotor 2 is read off. These steps are repeated on Rotor 1 and the Red character on Rotor 1 is found. This will be located in the same column as a character in the Encoding line of the Reflector ( blue ). The Reflector has two entries for each letter ( except J ) and when the Encoding line is entered from Rotor 1, the whole Ensyfa assembly is rotated ( keeping all the rotors aligned ) to find the other location of the Encoding line letter. From there, the reverse path is followed back through Rotors 1, 2 & 3 to the Input Ring, where the final enciphered character for the plain text input is located. The Reflector has a single entry for the letter J, which means that the plain text input letter will be enciphered as itself, by retracing the path back through the three rotors to the Input Ring. Also there are 3 ► arrows on the Reflector, which mean that instead of jumping to the same letter on the Encoding line, the jump is to the next ► character in the same direction. Although this looks rather complicated, it is just equivalent to a single monoalphabetic substitution, which can be easily cracked by letter frequency analysis. To make cryptanalysis more difficult, it is necessary to step the rotors each time a letter has been enciphered, beginning with Rotor 1. The Rotors have a number of blue squares marked on them, these are used to indicate jumping of the higher Rotors. Whenever two adjacent rotors show blue squares in the same column, the higher Rotor jumps to the next blue square location. Further complexity can be introduced by stepping some of the rotors in the opposite direction. Obviously the more complex the stepping procedure, the longer it will take to encipher the text and the more the procedure will be prone to errors. This is the trade off for increased security. DECIPHERING When an enciphered message has been received, it is necessary to know the initial settings for the Rotor sequence, Alphabet Ring settings and Keyword used before it can be deciphered. If a Rotor stepping procedure was used, this must be known also. The Ensyfa wheels are set up with this information and each letter of the message is traced through the Rotors in exactly the same way as was done for the encipherment, with the one exception that the Decoding line of the Reflector ring is now used, reading in the reverse direction. When applicable, stepping takes place after each letter is deciphered in the same manner as for the encipherment. This diagram shows the setup of the Rotors with the keyword PRH in the A---J column. If the first letter of the plain text message is B, then the path through the Rotors & Reflector is shown by the red dotted lines. The output of the encipherment would be 7. If a message was being decoded and its first character was 7, then the path through the rotors would follow the reverse path, except that the Decode line of the Reflector would be used. In this example the Decode line has the letter D, so the path jumps to the other location with the same letter, but if the reflector letter was J, the path would retrace back to the input letter. If an arrow is encountered on the Reflector, the path jumps in the direction shown to the next arrow.