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:

Disk 1 |

01,02,03,...,24,25,26 |

Disk 2 |

27,28,29,...,50,51,52 |

Disk 3 |

53,54,55,...,76,77,78 |

Disk 4 |

79,80,81,...,98,99,00,-,-,-,- |

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`

__Example:__ `01,27,53,79`

— 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)

__Example:__ `A,A,A,A`

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.

dCode retains ownership of the online "Mexican Army Cipher Wheel" source code. Except explicit open source licence (indicated CC / Creative Commons / free), the "Mexican Army Cipher Wheel" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Mexican Army Cipher Wheel" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, copy-paste, or API access for "Mexican Army Cipher Wheel" are not public, same for offline use on PC, tablet, iPhone or Android ! Remainder : dCode is free to use.

Please, check our dCode Discord community for help requests!

NB: for encrypted messages, test our automatic cipher identifier!

- Mexican Army Cipher Wheel Decoder
- Mexican Army Cipher Wheel Encoder
- What is the Mexican Army Wheel? (Definition)
- How to define the position (cipher key) of the wheel?
- How to encrypt using the Mexican Army Cipher Wheel?
- How to decrypt using Mexican Army Cipher Wheel?
- How to select the initial position of the wheel?
- How to recognize a Mexican Army ciphertext?
- What are variants of the Mexican Army wheel?
- How to decipher Mexican Army cipher without wheel?

mexican,mexico,wheel,cipher,army,disk,01,27,53,79

Source : https://www.dcode.fr/mexican-army-cipher-wheel

© 2021 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback

▲
Thanks to your feedback and relevant comments, dCode has developed the best 'Mexican Army Cipher Wheel' tool, so feel free to write! Thank you!