{"id":27293836,"url":"https://github.com/ikeviny/ultra","last_synced_at":"2025-04-11T22:45:08.792Z","repository":{"id":57671031,"uuid":"72560924","full_name":"iKevinY/ultra","owner":"iKevinY","description":"Cryptanalysis of the Enigma machine in Rust.","archived":false,"fork":false,"pushed_at":"2021-04-21T02:29:37.000Z","size":1507,"stargazers_count":125,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T22:44:56.989Z","etag":null,"topics":["cryptanalysis","enigma","enigma-machine","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/iKevinY.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":"2016-11-01T17:43:24.000Z","updated_at":"2024-11-13T02:03:31.000Z","dependencies_parsed_at":"2022-09-26T20:41:25.937Z","dependency_job_id":null,"html_url":"https://github.com/iKevinY/ultra","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKevinY%2Fultra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKevinY%2Fultra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKevinY%2Fultra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKevinY%2Fultra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iKevinY","download_url":"https://codeload.github.com/iKevinY/ultra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492966,"owners_count":21113160,"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","enigma-machine","rust"],"created_at":"2025-04-11T22:45:07.338Z","updated_at":"2025-04-11T22:45:08.777Z","avatar_url":"https://github.com/iKevinY.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ultra [![Build Status][Travis Badge]][Build Status] [![crates.io][crates.io Badge]][crates.io] [![docs.rs][docs.rs Badge]][docs.rs] [![License][License Badge]](LICENSE)\n\n`ultra` is a Rust implementation of the [Enigma machine] that includes the\nability to decrypt ciphertext.\n\n\n## Installation\n\n`ultra` can be installed from [crates.io] using Cargo:\n\n```\n$ cargo install ultra\n```\n\n\n## Usage\n\nEncrypt a message with rotors `1-4-2`, key setting `D-O-G`, and ring setting `C-A-T`:\n\n```bash\n$ ultra --rotor=142 --key=DOG --ring=CAT \"The quick brown fox jumps over the lazy dog.\"\nNtz ntqlz jmwll art bbnow wzqk keq ievk lzo.\n```\n\nEncrypt a message using random Enigma settings:\n\n```bash\n$ ultra --randomize \"The quick brown fox jumps over the lazy dog.\"\nKxj mcwzf oqgmz pwr vnfqq iwhv wcr qqgt lgd.\n\u003e Rotors: 5-2-3 / Key: A-A-G / Ring: N-W-Q / Plugs: CG EZ HW IJ MP TY\n```\n\nAttempt to decrypt a piece of ciphertext:\n\n```bash\n$ ultra --decrypt \"$(cat ciphertext.txt)\"\n...\n```\n\nDecryption relies on a combination of [index of coincidence], bigram, and\nquadgram frequencies to infer the original Enigma machine settings, and as a\nresult, it is quite likely that messages shorter than 500 characters will not\ncome anywhere close to being decrypted correctly.\n\n\n## References\n\nThe original version of this project was based on [James Lyons'] articles about\nthe Enigma machine (see [this blog post] for a brief overview). As of version\n0.6.0, the decryption algorithm was updated, inspired by [this Computerphile\nvideo].\n\n\n## License\n\n`ultra` is licensed under the [MIT License](LICENSE).\n\n\n[Travis Badge]: https://travis-ci.org/iKevinY/ultra.svg?branch=master\n[Build Status]: https://travis-ci.org/iKevinY/ultra\n[crates.io Badge]: https://img.shields.io/crates/v/ultra.svg\n[crates.io]: https://crates.io/crates/ultra\n[docs.rs Badge]: https://docs.rs/ultra/badge.svg\n[docs.rs]: https://docs.rs/ultra\n[License Badge]: https://img.shields.io/crates/l/ultra.svg\n\n[Enigma machine]: https://en.wikipedia.org/wiki/Enigma_machine\n[index of coincidence]: https://en.wikipedia.org/wiki/Index_of_coincidence\n[this blog post]: http://kevinyap.ca/2017/04/breaking-the-enigma-code-with-rust/\n[James Lyons']: http://practicalcryptography.com/ciphers/mechanical-era/enigma/\n[this Computerphile video]: https://www.youtube.com/watch?v=RzWB5jL5RX0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikeviny%2Fultra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikeviny%2Fultra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikeviny%2Fultra/lists"}