{"id":1949,"url":"https://github.com/mikaoj/EnigmaKit","last_synced_at":"2025-08-02T05:33:19.924Z","repository":{"id":56910019,"uuid":"48588057","full_name":"mikaoj/EnigmaKit","owner":"mikaoj","description":"Enigma encryption in Swift","archived":false,"fork":false,"pushed_at":"2019-04-09T10:47:12.000Z","size":160,"stargazers_count":117,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-27T23:30:21.750Z","etag":null,"topics":["cipher","encryption","enigma","enigma-machine","enigma-simulator","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/mikaoj.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}},"created_at":"2015-12-25T18:15:27.000Z","updated_at":"2024-07-21T00:56:46.000Z","dependencies_parsed_at":"2022-08-21T04:20:38.608Z","dependency_job_id":null,"html_url":"https://github.com/mikaoj/EnigmaKit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaoj%2FEnigmaKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaoj%2FEnigmaKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaoj%2FEnigmaKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaoj%2FEnigmaKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikaoj","download_url":"https://codeload.github.com/mikaoj/EnigmaKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228443806,"owners_count":17920791,"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":["cipher","encryption","enigma","enigma-machine","enigma-simulator","swift"],"created_at":"2024-01-05T20:15:59.683Z","updated_at":"2024-12-06T09:30:46.134Z","avatar_url":"https://github.com/mikaoj.png","language":"Swift","funding_links":[],"categories":["Security"],"sub_categories":["Encryption","Other free courses"],"readme":"# 𝕰𝖓𝖎𝖌𝖒𝖆𝕶𝖎𝖙\n\n[![CI Status](http://img.shields.io/travis/mikaoj/EnigmaKit.svg?style=flat)](https://travis-ci.org/mikaoj/EnigmaKit)\n[![Version](https://img.shields.io/cocoapods/v/EnigmaKit.svg?style=flat)](http://cocoapods.org/pods/EnigmaKit)\n[![License](https://img.shields.io/cocoapods/l/EnigmaKit.svg?style=flat)](http://cocoapods.org/pods/EnigmaKit)\n[![Platform](https://img.shields.io/cocoapods/p/EnigmaKit.svg?style=flat)](http://cocoapods.org/pods/EnigmaKit)\n![Alt text](enigma.gif \"Enigma\")\n\n## 𝖀𝖘𝖆𝖌𝖊\n```swift\n// Will create an Enigma with an empty plugboard, rotors I, II, III and reflector B (wide).\nlet enigma = Enigma()\n// Will output \"ILBDA AMTAZ\"\nlet result = enigma.encode(\"HELLO WORLD\")\n```\n\n```swift\nlet enigma = Enigma()\n// \"HELLO WORLD\"\nlet result = enigma.encode(\"ILBDA AMTAZ\")\n```\n## 𝕮𝖔𝖒𝖕𝖔𝖓𝖊𝖓𝖙𝖘\n#### 𝕻𝖑𝖚𝖌𝖇𝖔𝖆𝖗𝖉\n```swift\n// Create a plugboard and add a patch between A and D\nlet plugboard = Plugboard()\nplugboard.add((\"A\", \"D\"))\n```\n#### 𝕽𝖔𝖙𝖔𝖗\n```swift\n// III rotor. EnigmaKit comes prebuilt with rotors I-VIII\nlet rotor = Rotor.III\nrotor.setting = 5 // Ringstellung\nrotor.position = 6 // Grundstellung\n\n// Or initialize your own\nlet rotor = Rotor(name: \"My custom rotor\", wiring: \"VZBRGITYUPSDNHLXAWMJQOFECK\", notch: \"QV\")\n```\n#### 𝕽𝖊𝖋𝖑𝖊𝖈𝖙𝖔𝖗\n```swift\n// EnigmaKit comes with reflectors A-C (wide) and B-C (thin)\nlet reflector = Reflector.B\n\n// Or you can create your own reflector\nlet reflector = Reflector(name: \"My custom reflector\", wiring: \"VZBRGITYUPSDNHLXAWMJQOFECK\")\n```\n#### 𝕰𝖓𝖎𝖌𝖒𝖆\n```swift\n// Create an enigma with your own plugboard, rotors and reflector of choice\nlet enigma = Enigma(reflector: Reflector.C, rotors: [Rotor.III, Rotor.IV, Rotor.II], plugboard: Plugboard())\n```\n\n## 𝕽𝖊𝖖𝖚𝖎𝖗𝖊𝖒𝖊𝖓𝖙𝖘\nDon't mention the war\n\n## 𝕴𝖓𝖘𝖙𝖆𝖑𝖑𝖆𝖙𝖎𝖔𝖓\n\nEnigmaKit is available through [Swift Package Manager](https://swift.org/package-manager/), [CocoaPods](http://cocoapods.org).\n\n## 𝕬𝖚𝖙𝖍𝖔𝖗\n\nJoakim Gyllström, joakim@backslashed.se\n\n## 𝕷𝖎𝖈𝖊𝖓𝖘𝖊\n\nEnigmaKit is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaoj%2FEnigmaKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikaoj%2FEnigmaKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaoj%2FEnigmaKit/lists"}