Skip to main content

Enigma – Mission X Challenge Accomplished with Python

·2 mins

Github Repo: https://github.com/cuicaihao/Annotated-Transformer-English-to-Chinese-Translator

Background #

Inspired by Enigma - Mission X Challenge, this repo is used to save the research and practice efforts in Different Cipher methods. The primary goals are using python programming language to achieve targets listed as follows:

Dependency #

  • python 3.11 (use conda or pyenv)
  • pandas
  • matplotlib

Python 3.11 is used for development work, and I believe python version 3.8, 3.9, 3.10 are all OK. FYI, python 3.11 is about 25% faster than 3.10python-speedy for details.

You will need to install pandas and matplotlib for Excel operation and plot figures.

Enigma Machine #

Take a step by step tutorial by notebook:Chapter_B_Enigma to develope a Enigma Machine in python.

Eventually, use the Enigma Cipher Machine Emulator to accomplish the Mission X.

intro-inside-enigma

Here is the final output for the code for the Mission X.

DateCiphertextPlaintext_GermanTranslation_English
1940-04-07SYTUN TJBFC BRSSY XNPKQ QZMDWKeine besonderen ereignisseNoting to report
1940-04-11SDPNV OLDCQ HIBMK QTONC VNZXU SKSPZ IWWir werden nachsten montag angreifenWe will next Monday to attack
1940-04-12OJSBI BUPKA ECMEE ZHZiel hafen von DOVERTarget port of DOVER
1940-04-12REVNU XWYCV HZFSH NFMSPWarten auf AnweisungenWaiting for instructions

Credits #

Reference #