{"id":13844378,"url":"https://github.com/cernyd/gnunigma-python","last_synced_at":"2025-07-11T22:31:53.544Z","repository":{"id":212919102,"uuid":"70934290","full_name":"cernyd/gnunigma-python","owner":"cernyd","description":"Enigma encryption machine emulation in Python.","archived":true,"fork":false,"pushed_at":"2019-04-26T12:06:06.000Z","size":515,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T17:41:43.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cernyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-14T17:53:47.000Z","updated_at":"2023-01-28T16:54:38.000Z","dependencies_parsed_at":"2023-12-17T10:26:51.931Z","dependency_job_id":"c917122f-0cb8-495e-b2fc-84a2a0a978f6","html_url":"https://github.com/cernyd/gnunigma-python","commit_stats":null,"previous_names":["cernyd/gnunigma-python"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernyd%2Fgnunigma-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernyd%2Fgnunigma-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernyd%2Fgnunigma-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernyd%2Fgnunigma-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cernyd","download_url":"https://codeload.github.com/cernyd/gnunigma-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225763372,"owners_count":17520446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:02:41.344Z","updated_at":"2024-11-21T16:31:21.498Z","avatar_url":"https://github.com/cernyd.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"# gnunigma\n![Enigma logo](https://images.duckduckgo.com/iu/?u=https%3A%2F%2Fs-media-cache-ak0.pinimg.com%2F236x%2F59%2Ff7%2F4e%2F59f74e1fbac1f6adcf039f13feb4e67e.jpg\u0026f=1) \n\n[Basic information](#basic-information) | [Compatibility](#compatibility) | [Installation](#installation) | [Requirements](#requirements) | [Platform differences](#features-missing-in-the-ubuntu-version) | [FAQ](#faq) | [License](#license)\n\n## Basic information\n* Gnunigma simulates the *enigma encryption machine*, which was used by the Germans in 20th century.\n* **Language of choice** - python\n* **Graphical library** - tkinter/Tkinter\n\n## How it looks\n### On Windows\n* Warning! This screenshot is old and some new GUI features were added in newer versions! (as you can see on the Ubuntu screenshot)\n\n![Gnunigma on Windows](http://i.imgur.com/DczgfHE.png)\n### On Ubuntu\n![Gnunigma on Ubuntu](http://i.imgur.com/2DmzAvX.png)\n----\n## Compatibility\n* Gnunigma was tested on Windows 10 and Ubuntu (16.04, 16.10, 17.04) and should be compatible\n\n### Installation\n1. Download the source\n2. If you are on Ubuntu and don't have Tkinter installed on python 3, run this command\n```bash\nsudo apt-get install python3-tk\n```\n3. Run the ```runtime.py``` file with python 3\n\n### Requirements\n1. Python version 3.5 and newer (older python 3 versions might work as well but were not tested by me!)\n   * *tkinter* library is included on Windows by default but must be installed on Ubuntu\n\n### Features missing in the Ubuntu version\n1. **Sound** - gnunigma on Windows is using the *winsound* library, which is not available on linux\n2. **Icons** - there were some issues with iconbitmaps on\n3. **Styling** - The gui does not looks as good as on Windows (scaling, weird colors)\n\n---\n# How it works\n* Gnunigma has come a long way since the start of its developement, I tried to make it as \"modular\" as possible, this means:\n  1. Objects derived from the BaseEnigma\n\n# Project hierarchy\n* Files that require further explanations are links to sections describing them in more detail.\n\n* **gnunigma/**\n  * **enigma/**\n    * [components.py](#components)\n    * **historical_data.yaml** - Historical enigma data\n  * **icons/** - Icons used by the Windows version\n  * **sounds/** - Sounds played by the Windows version\n  * **.gitignore** - Ignores .pyc and .idea folder from pycharm\n  * [LICENSE.txt](#license)\n  * **README.md** - This file\n  * [cfg_handler.py](#cfg_handler)\n  * [config.yaml](#config)\n  * [data_handler.py](#data_handler)\n  * [enigma_deciphered.txt](#accomplishments-of-gnunigma)\n  * [gui.py](#gui)\n  * [runtime.py](#runtime)\n\n# Files\n## components\n * Enigma simulation classes (enigma machines, machine parts, additional devices)\n## cfg_handler\n* Used for loading raw data from YAML files\n\n## config\n* Global configuration (GUI settings, enigma settings saved by the user, unit test config)\n\n## data_handler\n*  Handlers (for sound and configuration/data IO)\n\n## gui\n* All GUI classes (most of them represent a window, others some tkinter derived classes)\n\n## runtime\n* Launches the GUI version\n\n# Accomplishments of gnunigma\n* Gnunigma proved its historical accuracy by successfully deciphering original enigma messages\n  * Message examples were taken from [this site](http://wiki.franklinheath.co.uk/index.php/Enigma/Sample_Messages) \n---\n## Barbarossa 1941\n**Reflector:** B\n**Wheel order:** II IV V\n**Ring positions:** 02 21 12\n**Plug pairs:**\tAV BS CG DL FU HZ IN KM OW RX\n\n### PART 1, msg key - **BLA**\n\n#### Raw decrypted message\n\n```AUFKL X ABTEILUNG X VON X KURTINOWA X KURTINOWA X NORDWESTL X SEBEZ X SEBEZ X U AFFLIEGER STRASZERIQTUNG X DUBROWKI X DUBROWKI X OPOTSCHKA X OPOTSCHKA X UM X EINS AQT DREI NULL X UHR ANGETRETEN X ANGRIFF X INF X RGT X```\n#### Adjusted for german symbols\n\n```AUFKL ABTEILUNG VON KRUTINOWA KURTINOWA NORDWESTL SEBEZ SEBEZ U AFFLIEGER STRAßERICHTUNG DUBROWKI DUBROWKI OPOTSCHKA OPOTSCHKA OPOTSCHKA UM 18 30 UHR ANGETRETEN ANGRIFF INF RGT```\n\n### PART 2, msg key - LSD\n#### Raw decrypted message\n\n`DREI GEHT LANGSAM ABER SIQER VOR WAERTS X EINS SIEBEN NULL SEQS X UHR X ROEM X EINS X INFRGT X DREI X AUF FLIEGER STRASZE MIT ANFANG X EINS SEQS X KM X KM X OSTW X KAMENEC X K`\n#### Adjusted for german symbols\n\n`3 GEHT LANGSAM ABER SICHER VORWÄRST 17 06 UHR RÖM 1 IFRGT 3 AUF FLIEGERSTRAßE MIT ANFANG 16 KM KM OSTW KAMENEC K`\n\n---\n## Enigma Instruction Manual, 1930, msg key - ABL\n**Reflector:**\tA\n**Wheel order:**\tII I III\n**Ring positions:** \t24 13 22\n**Plug pairs:**\tAM FI NV PS TU WZ\n#### Raw decrypted message\n\n```FEINDLIQE INFANTERIEKOLONNE BEOBAQTET X ANFANG SEDD AUSGANG BAER WALDE X ENDE DREI KMOST WAERTS NEUSTADT```\n\n#### Adjusted for german symbols\n\n```FEINDLICHE INFANTERIEKOLONNE BEOBACHTET ANFANG SEDD AUSGANG BÄR WALDE ENDE 3 KMOST WÄRTS NEUSTADT```\n\n---\n## Scharnhorst (Konteradmiral Erdich Bey), 1943, msg key - UZV\n**Reflector:**\tB\n**Wheel order:**\tIII VI VIII\n**Ring positions:** \t01 08 13\n**Plug pairs:**\tAN EZ HK IJ LR MQ OT PV SW UX\n#### Raw decrypted message\n\n```STEUERE J TANA FJORD J AN STAN DORT QU AAA CCC VIER NEUN NEUN ZWO FAHRT ZWO NUL SMXX SCHARNHORST HCO```\n\n---\n# FAQ\n* If you have any questions, visit the wiki first (mostly incomplete!) or PM me.\n\n---\n# License\n* The project is licensed with [GNU GPLv3](https://en.wikipedia.org/wiki/GNU_General_Public_License)\n![GNU GPL logo](https://cloud.githubusercontent.com/assets/18537381/26077378/236c0eec-39bc-11e7-8013-29bfbe1ab2f0.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcernyd%2Fgnunigma-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcernyd%2Fgnunigma-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcernyd%2Fgnunigma-python/lists"}