Skip to content

cuicaihao/Enigma-Mission-X

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enigma – Mission X Challenge

header

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:

  • Revisit Basic Cipher Methods
  • Digital Enigma Cipher Machine Emulator
  • Turing-Welchman Bombe Simulator
  • Story Telling & Knowledge Sharing

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.

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

Date Ciphertext Plaintext_German Translation_English
1940-04-07 SYTUN TJBFC BRSSY XNPKQ QZMDW Keine besonderen ereignisse Noting to report
1940-04-11 SDPNV OLDCQ HIBMK QTONC VNZXU SKSPZ IW Wir werden nachsten montag angreifen We will next Monday to attack
1940-04-12 OJSBI BUPKA ECMEE ZH Ziel hafen von DOVER Target port of DOVER
1940-04-12 REVNU XWYCV HZFSH NFMSP Warten auf Anweisungen Waiting for instructions

German Translation Book

Revisit Basic Cipher Methods

Take a step by step tutorial by notebook: Basic_Cipher, this will help you to get a better understanding of the Enigma machine.

Basic Letter 1 to 1 mapping like Caesar Cipher is very easy to be hacked by comparing and matching letter based on statistic.

Simple Cipher

By create a multiply mappings and rolling the letter mapping by order, we can mapping the same letter to a different letter in each around, lead to a more even distributed ciphertext.

Rolling Ciphers

Turing-Welchman Bombe Simulator

TBC.

Credits

Reference

About

Enigma – Mission X Challenge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published