{"id":20548087,"url":"https://github.com/lusingander/enigma","last_synced_at":"2025-07-12T05:03:48.326Z","repository":{"id":105968825,"uuid":"515973284","full_name":"lusingander/enigma","owner":"lusingander","description":"Terminal Enigma machine simulator ⚙️","archived":false,"fork":false,"pushed_at":"2023-10-03T14:00:46.000Z","size":354,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T17:03:11.500Z","etag":null,"topics":["bubbletea","enigma","enigma-machine","enigma-simulator","go","tui"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lusingander.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-07-20T12:29:35.000Z","updated_at":"2024-03-29T13:23:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"b998d830-d686-49a4-9649-da7958d2dedd","html_url":"https://github.com/lusingander/enigma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lusingander/enigma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fenigma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fenigma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fenigma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fenigma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lusingander","download_url":"https://codeload.github.com/lusingander/enigma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fenigma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264940386,"owners_count":23686243,"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":["bubbletea","enigma","enigma-machine","enigma-simulator","go","tui"],"created_at":"2024-11-16T02:12:00.778Z","updated_at":"2025-07-12T05:03:48.301Z","avatar_url":"https://github.com/lusingander.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/lusingander/enigma.svg)](https://pkg.go.dev/github.com/lusingander/enigma)\n![GitHub](https://img.shields.io/github/license/lusingander/enigma)\n\n# Enigma\n\nTerminal [Enigma machine](https://en.wikipedia.org/wiki/Enigma_machine) simulator\n\n\u003cimg src=\"./resource/image.gif\" width=800\u003e\n\n## Installation\n\n`$ go install github.com/lusingander/enigma/cmd/enigma-simulator@latest`\n\n(require Go 1.18+)\n\n## Usage\n\n### Keybindings\n\n|Key|Description|\n|-|-|\n|\u003ckbd\u003eA\u003c/kbd\u003e - \u003ckbd\u003eZ\u003c/kbd\u003e|input|\n|\u003ckbd\u003eCtrl+c\u003c/kbd\u003e|quit|\n|\u003ckbd\u003eEsc\u003c/kbd\u003e|reset|\n\n### Using as a library\n\n```go\nimport \"github.com/lusingander/enigma/enigma\"\n\nfunc main() {\n    e := enigma.NewM3(\n        [3]enigma.Rotor{\n            enigma.NewRotor1('A', 'A'), // (initial position, ring setting)\n            enigma.NewRotor2('A', 'A'),\n            enigma.NewRotor3('A', 'A'),\n        },\n        enigma.NewReflectorB(),\n        enigma.NewPlugboard(),\n    )\n\n    e.EncodeString(\"HELLO\") // returns \"MFNCZ\"\n    e.EncodeString(\"HELLO\") // returns \"RHOZF\"\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flusingander%2Fenigma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flusingander%2Fenigma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flusingander%2Fenigma/lists"}