{"id":26151682,"url":"https://github.com/anker661/toy_enigma_simulator","last_synced_at":"2026-04-22T21:40:19.762Z","repository":{"id":246528774,"uuid":"821284275","full_name":"ANKer661/Toy_Enigma_Simulator","owner":"ANKer661","description":"Simulate Enigma machine with configurable settings and real-time encryption/decryption feedback using Streamlit.","archived":false,"fork":false,"pushed_at":"2024-07-12T03:57:33.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T21:46:08.214Z","etag":null,"topics":["enigma-machine","enigma-simulator","python3","streamlit","streamlit-webapp","toy-project"],"latest_commit_sha":null,"homepage":"https://anker661-toy-enigma-simulator-enigma-app-8skqnu.streamlit.app/","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/ANKer661.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":"2024-06-28T07:48:10.000Z","updated_at":"2024-07-12T03:57:36.000Z","dependencies_parsed_at":"2024-06-28T14:12:55.145Z","dependency_job_id":"5ddc2e18-0d06-46da-9b63-949b907e6874","html_url":"https://github.com/ANKer661/Toy_Enigma_Simulator","commit_stats":null,"previous_names":["anker661/toy_enigma_simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ANKer661/Toy_Enigma_Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANKer661%2FToy_Enigma_Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANKer661%2FToy_Enigma_Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANKer661%2FToy_Enigma_Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANKer661%2FToy_Enigma_Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ANKer661","download_url":"https://codeload.github.com/ANKer661/Toy_Enigma_Simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANKer661%2FToy_Enigma_Simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32156606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["enigma-machine","enigma-simulator","python3","streamlit","streamlit-webapp","toy-project"],"created_at":"2025-03-11T06:38:21.483Z","updated_at":"2026-04-22T21:40:19.733Z","avatar_url":"https://github.com/ANKer661.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy Enigma Simulator\n\nThis project simulates the functionality of the historical Enigma machine, allowing you to encrypt and decrypt messages using configurable settings. The simulation is built using Streamlit for real-time feedback.\n\n### App Screenshot\n\n![Enigma Machine Simulator](figs/demo.png)\n\n### About\n\nThis app simulates the Enigma machine used during World War II for secure communication. It allows you to experience how messages were encrypted and decrypted using a configurable set of rotors and plugboard connections.\n\n### Features\n\n- Choose 3 out of 5 available rotors for encryption/decryption\n- Set initial positions for the chosen rotors\n- Configure plugboard connections\n- Real-time encryption and decryption of messages\n- Display of current Enigma machine state\n\n### Project Structure\n\n- `Toy_Enigma_Simulator`/\n  \n  - `streamlit_layout/`: Contains layout and view-related code.\n  \n    - `sidebar.py`: Configuration and settings displayed in the sidebar.\n    - `main_view.py`: Main encryption/decryption interface.\n    - `utils.py`: Utility functions used by the sidebar and main view.\n  \n  - `src/`: Core Enigma machine logic.\n    - `enigma.py`: Core logic for the Enigma machine, including rotor mechanisms and encryption/decryption functions.\n    - `plugboard.py`: Definition and operations of Enigma machine's plugboard for letter substitution.\n    - `reflector.py`: Definition and operations of Reflector of the Enigma machine, which ensures reciprocal encryption.\n    - `rotor.py`: Definition and operations of Rotors used in the Enigma machine, including stepping and wiring configurations.\n  \n  - `enigma_app.py`: Main entry point for the Streamlit application.\n\n### Installation\n\nTo run this project locally, follow these steps:\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/ANKer661/Toy_Enigma_Simulator.git\n    cd Toy_Enigma_Simulator\n    ```\n\n2. Install the required dependencies:\n\n    ```bash\n    pip install streamlit\n    ```\n\n3. Run the Streamlit app:\n\n    ```bash\n    streamlit run enigma_app.py\n    ```\n\nOr try out the [online demo](https://anker661-toy-enigma-simulator-enigma-app-8skqnu.streamlit.app/) to see the Toy Enigma Simulator in action!\n\n### Usage\nOpen the Streamlit app in your web browser.\n- Configure the Enigma machine settings in the sidebar:\n  - Select 3 working rotors from the available 5.\n  - Set the initial positions for the chosen rotors.\n  - Enter plugboard connections in the specified format (e.g., AB CD EF).\n- Enter the text you wish to encrypt or decrypt in the main interface.\n- Click the \"Process\" button to view the result.\n- Expand the \"Current Enigma State\" section to see the current configuration of the Enigma machine.\n\n\n\n### License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanker661%2Ftoy_enigma_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanker661%2Ftoy_enigma_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanker661%2Ftoy_enigma_simulator/lists"}