Tool to decrypt/encrypt with the Mexican Army Wheel Cipher using 4 mobile concentric disks with numeric codes.
Mexican Army Cipher Wheel - dCode
Tag(s) : Homophonic Substitution Cipher
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The wheel of the Mexican army is in fact made up of 5 rotating concentric discs (also called wheels, or stages), whose position can be adjusted. Generally the outer wheel is fixed (the letters wheel) with the A at the top, so there are only 4 disks that are swiveling and adjustable.
The 4 disks are made of numbers from 00 to 99 as follows:
The fourth disc is composed of the numbers from 79 to 99, followed by 00 (for 100) and 4 empty slots (which may be called 101, 102, 103 and 104).
The position of the disks is the encryption key. The key (the position of the disks on each stage) is defined according to two methods:
— by a set of 4 numbers, those situated under the A
— by a set of 4 letters, those above (on the outer disk) of the numbers 01, 27, 53 and 79 (which are the smallest numbers of each disc)
At each letter of the plain message, the transmitter marks it on the outer dial and associates a two-digit (random) code among the 4 located directly below the letter on each of the discs.
Example: Given a dial positioned at stage 1 on 01, at stage 2 on 27, at stage 3 on 53 and at stage 4 on 79 (which is the default position, therefore associated with the 4 letters AAAA).
Example: To encrypt DCODE, the transmitter locates the letter D and can choose either 04, 30, 56 or 82 to encrypt the first letter. For the C, the numbers 03, 29, 55 or 81 are possible. In the end, DCODE can be encrypted 8281670405 or 5629938257 or other...
Decryption requires to know the encryption key (the initial positions of the disks), usually 4 numbers or 4 letters, which make it possible to adjust the positions of the discs of the wheel.
To decrypt, the message is decomposed in pairs of 2 digits in order to retrieve, for each 2-digit number / code, the letter at the top (on the outer disk) of the number in the wheel and thus reconstitute the plain message.
Example: The encrypted message is 5681158231, so 56 corresponds to D, 81 is located under C, etc. The plaintext is DCODE.
Any combination of 4 numbers is possible, however it is common to use a 4 digit code, a year or a time (HHMM so 4 digits).
The message consists only of digits and there is an even number (since the encrypted message consists of pairs of 2 digits). Any reference to Mexico, Mayan, fajitas, tequila etc. is a clue.
The Youtuber Michael Stevens (Vsauce, Ding) presented a very similar encrypted wheel sold under the name of INQ Cipher Wheel in his Curiosity Box VIII here (link)
The numbers are represented there with the code of the mirror digits and the values 101,102,103,104 are replaced by V1, V2, V3 and a drawing of an octopus (named Inq)
The cipher wheel of the Mexican Army is actually a polyalphabetic cipher with 4 alphabets per shift.
To find the 4 offsets, it is necessary to analyze the frequencies of the numbers between 01 and 26, the same for the numbers between 27 and 52, then 53 and 78 and 79 to 99.
Thus, the most used number between 01 and 26 will probably be an E, the position of the first wheel is then deduced therefrom. The same can be done for other discs.