{"id":21213833,"url":"https://github.com/romaleev/enigma-ts","last_synced_at":"2025-07-10T09:33:07.789Z","repository":{"id":47886982,"uuid":"81230942","full_name":"romaleev/enigma-ts","owner":"romaleev","description":"TypeScript Enigma Machine Implementation","archived":false,"fork":false,"pushed_at":"2022-12-05T13:31:53.000Z","size":197,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T16:08:50.507Z","etag":null,"topics":["babel","ecmascript","ecmascript6","enigma","enigma-ts","es6","jasmine","nodejs","npm","romaleev","ts","tsc","tslint","tslint-rules","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romaleev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-07T16:46:45.000Z","updated_at":"2023-05-31T13:57:19.000Z","dependencies_parsed_at":"2023-01-23T02:15:16.363Z","dependency_job_id":null,"html_url":"https://github.com/romaleev/enigma-ts","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/romaleev%2Fenigma-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaleev%2Fenigma-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaleev%2Fenigma-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaleev%2Fenigma-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romaleev","download_url":"https://codeload.github.com/romaleev/enigma-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225482021,"owners_count":17481179,"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":["babel","ecmascript","ecmascript6","enigma","enigma-ts","es6","jasmine","nodejs","npm","romaleev","ts","tsc","tslint","tslint-rules","typescript"],"created_at":"2024-11-20T21:24:13.356Z","updated_at":"2024-11-20T21:24:14.190Z","avatar_url":"https://github.com/romaleev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enigma [![Build Status](https://travis-ci.org/romaleev/enigma-ts.svg)](https://travis-ci.org/romaleev/enigma-ts)\n\nTypeScript [Enigma Machine](https://en.wikipedia.org/wiki/Enigma_machine) Implementation.\n\nEnigma M3 with three rotors, reflector and plugboard.\n\nWork principle can be found [here](https://www.theguardian.com/technology/2014/nov/14/how-did-enigma-machine-work-imitation-game)\n\n## Install\n\n```bash\nnpm install\n```\n\n## Usage\n\n```JavaScript\nvar Enigma = require('enigma-ts');\n\nvar enigma = new Enigma('AAA');\n\nenigma.process('HELLO WORLD'); // LMHNH TMAUA\n\n/**\n* Or with configuration\n* */\n\nvar default_config = {\n   rotors: [\n\t   {'EKMFLGDQVZNTOWYHXUSPAIBRCJ': 'Q'},\n\t   {'AJDKSIRUXBLHWTMCQGZNPYFVOE': 'E'},\n\t   {'BDFHJLCPRTXVZNYEIWGAKMUSQO': 'V'},\n   ],\n   plugboard: ['AY', 'BR', 'CU', 'DH', 'EQ', 'FS', 'GL', 'IP', 'JX', 'KN', 'MO', 'TZ', 'VW'],\n   reflector: 'YRUHQSLDPXNGOKMIEBFZCWVJAT',\n};\n\nenigma = new Enigma('OBY', default_config);\n\nenigma.positions; // OBY\n\nenigma.positions = 'AAA';\n\nenigma.positions; // AAA\n```\n\n### Test\n\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromaleev%2Fenigma-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromaleev%2Fenigma-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromaleev%2Fenigma-ts/lists"}