This repository has been archived by the owner. It is now read-only.
Enigma implementation in Java with GUI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Enigma
README.md

README.md

crabNigma

Enigma implementation in Java with GUI

No gui example: (Check out EnigmaNoGuiExample.java)

Enigma enigma = new Enigma(RotorType.II, RotorType.IV, RotorType.I, ReflectorType.UKW_B, new Plugboard().addConnection('G', 'T').addConnection('J', 'P'));
enigma.setRot1Pos(4);
enigma.setRot2Pos(7);
enigma.setRot3Pos(14);

System.out.println(enigma.processString("WELCOME TO CRABNIGMA")); //this will result NSVGUHR EC HLDSUESWY

GUI screenshot:
GUI screenshot