{"id":20954247,"url":"https://github.com/petitoto/enigma-cracker","last_synced_at":"2025-04-11T17:42:36.929Z","repository":{"id":162573596,"uuid":"558451537","full_name":"Petitoto/Enigma-Cracker","owner":"Petitoto","description":"Cryptanalysis tool for the Enigma machine","archived":false,"fork":false,"pushed_at":"2023-08-21T11:11:39.000Z","size":22925,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T13:45:42.334Z","etag":null,"topics":["cryptanalysis","enigma"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Petitoto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-27T15:16:10.000Z","updated_at":"2024-12-17T16:46:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"458970c2-4198-4c09-a571-ac2bbe25fdcf","html_url":"https://github.com/Petitoto/Enigma-Cracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Petitoto%2FEnigma-Cracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Petitoto%2FEnigma-Cracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Petitoto%2FEnigma-Cracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Petitoto%2FEnigma-Cracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Petitoto","download_url":"https://codeload.github.com/Petitoto/Enigma-Cracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451662,"owners_count":21105911,"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":["cryptanalysis","enigma"],"created_at":"2024-11-19T01:08:00.175Z","updated_at":"2025-04-11T17:42:36.920Z","avatar_url":"https://github.com/Petitoto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enigma-Cracker\n\n[![python](https://img.shields.io/badge/python-v3.x-blue)](https://www.python.org/)\n[![pypy](https://img.shields.io/badge/compatibility-PyPy-informational)](https://www.pypy.org/)\n[![dependecies](https://img.shields.io/badge/dependencies-0-success)](/)\n[![license](https://img.shields.io/badge/license-MIT-green)](/)\n\nEnigma-Cracker is a cryptanaylsis tool for the Enigma machine\n\n## Features\nCryptanalysis:\n- Crypt / decrypt messages\n- Index of coincidence attacks\n- N-grams attacks\n- Known plaintext attack\n- Turing's bombe\n- Rejewski's attack\n- Cribs finder using wordlists\n- Ring settings recovery\n\nEasy to use:\n- Friendly CLI\n- No external dependency\n- Export / import configurations to save your work\n- Misc commands to turn / roll back rotors, count letters...\n\nOptimized:\n- Use generators to reduce memory consumption\n- Use multiprocessing to increase speed\n- Compatible with PyPy to get incredibly fast results\n\nEasy to extend:\n- Customizable Enigma machines\n- Add new attacks easily\n\n\n## How to use\n### Install\n```\ngit clone https://github.com/Petitoto/Enigma-Cracker\ncd Enigma-Cracker\npython3 enigma-cracker.py\n```\n\n### Basic use\nUse `help` or `help \u003ccommand\u003e` to get help\n\nGlobal parameters are called `attributes`:\n```\nEnigma-Cracker \u003e help attributes\n\n        Attributes:\n            text: text to encrypt, decrypt, or attack\n            configs: Enigma configurations to encrypt, decrypt, or attack the text\n            process: number of processes to launch attacks (default: 1)\n\n        NB: multi processing prevents storing configurations as generators\n```\n\nMain idea behind Enigma's cryptanalysis:\n- generate a lot of possible configurations\n- use attacks to filter configurations\n- repeat attacks until the correct configuration is the only one left\n- some attacks allow separate computing of rotors, plugboard and ring settings\n\n### Demo\n#### Help\n\u003cimg src='doc/help.png' width=50% height=50%\u003e\n\n#### Index of coincidence to filter random configurations\n[(doc/1-demo-ic.mp4)](https://user-images.githubusercontent.com/27863028/198119588-6fa437e2-b353-4c01-90da-3584b2b6fcc9.mp4)\n\n#### Turing's bombe and crib to recover rotors configuration and partial plugboard settings\n[(doc/2-demo-turing.mp4)](https://user-images.githubusercontent.com/27863028/198119597-28041dd3-d6fe-4499-8ef7-2895d73c8ec9.mp4)\n\n#### Index of coincidence to recover more plugs\n[(doc/3-demo-plugs.mp4)](https://user-images.githubusercontent.com/27863028/198119606-f887d0d1-1dad-4cb5-96c5-9815f7082813.mp4)\n\n#### Recover ring settings\n[(doc/4-demo](https://user-images.githubusercontent.com/27863028/198119614-450a2ac3-5778-48ec-8030-46ade41ffff3.mp4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetitoto%2Fenigma-cracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetitoto%2Fenigma-cracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetitoto%2Fenigma-cracker/lists"}