Simulate a historical Enigma machine with this free, browser-based encryption tool. Encrypt and decrypt messages using custom rotor, plugboard, and reflector settings.
AI Generation Prompt
Free Enigma Machine Simulator & Text Encryptor
A professional, high-fidelity browser-based simulation of a 3-rotor Enigma machine. This tool allows users to encrypt and decrypt text by configuring mechanical settings such as rotor order, ring settings, and plugboard connections.
Core Features
- Real-Time Encryption/Decryption: Instant output generation as the user types.
- Mechanical Configuration Panel:
- Rotor selection (I-V).
- Adjustable Ring settings (01-26).
- Initial Ground settings (rotor start positions).
- Reflector selection (UKW-B, UKW-C).
- Virtual Plugboard: A visual interface to connect up to 10 letter pairs for added complexity.
- Visual Lamp Board: An interactive virtual display that lights up to show the current encrypted character path.
- Responsive Input Fields: Separate areas for Plaintext and Ciphertext with "Copy to Clipboard" functionality.
UI Layout
- Header: Clean, minimalist title with a short description of the tool's purpose.
- Configuration Section (Top): Collapsible panel containing dropdowns for rotors, number inputs for rings/positions, and a grid-based plugboard visualizer.
- Machine Visualizer (Center): A graphical representation of the lamp board (A-Z illuminated keyboard) showing the active output.
- Work Area (Bottom): A two-column split layout on desktop (Plaintext / Ciphertext) stacking vertically on mobile.
Design & Aesthetics
- Palette: A refined, professional light-mode aesthetic using soft grays, off-whites, and vibrant accents (e.g., electric blue for "active" lights, muted charcoal for hardware elements).
- Typography: Modern, clean sans-serif font stack (e.g., 'Inter', 'system-ui').
- Animations: Subtle CSS transitions for lamp board illumination and rotor rotation effects to provide tactile feedback.
Developer Directives
- Architecture: Must be a single HTML file including internal CSS and JS.
- Storage: STRICTLY FORBIDDEN to use localStorage, sessionStorage, or cookies. All machine state must remain in local JavaScript variables.
- Sandbox Safety: Use only modern Vanilla JS. Avoid any browser-native popups (no alert/confirm). Implement custom modal components for instructions or warnings.
- Mobile Responsiveness: The machine interface must scale down intelligently using Flexbox/Grid. On mobile, the configuration panel should be collapsible to ensure the keyboard and text fields remain accessible.
- Styling: Use Tailwind CSS via CDN for rapid, consistent styling. Ensure high contrast and professional spacing.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How does this Enigma simulator work?
This tool replicates the electromechanical rotor machine mechanism used during the mid-20th century. When you type a character, it passes through the plugboard, three rotors, and a reflector, reversing the process to produce an encrypted output letter which then lights up on the machine. The internal logic simulates the stepping of rotors, where the right rotor turns with every key press, causing the middle and left rotors to turn at specific intervals (the turnover mechanism). This ensures that the polyalphabetic substitution changes for every single keystroke, creating a highly complex cipher.
Can I customize the internal settings of the machine?
Yes, you can fully configure the rotor selection, ring settings, ground settings (initial rotor positions), and plugboard connections. By clicking on the configuration panel, you can choose which three rotors are used (e.g., I, II, III) and set their start positions to ensure your encryption is unique and secure. The plugboard configuration allows you to swap pairs of letters, which significantly increases the number of potential permutations. By adding these custom settings, you can replicate historical encryption setups or create your own cryptographic challenges for others to solve.
Is my encrypted data saved by the website?
No, this application operates entirely client-side within your browser. We do not use cookies, local storage, or server-side databases, meaning your data never leaves your device and is not saved anywhere after you close or refresh the page. This architecture ensures maximum privacy and security for your communications. Because the application is self-contained and runs in a sandboxed environment, no external trackers or storage mechanisms can access or store the messages you process using the simulator.
Is this tool suitable for modern encryption?
No, this is an educational tool designed for historical simulation and entertainment purposes. While the Enigma machine was revolutionary in its time, it is not cryptographically secure against modern computing power and should not be used for protecting sensitive personal data. For modern secure messaging, we recommend using industry-standard protocols such as AES-256 or RSA encryption, which are designed to withstand modern brute-force attacks. This tool is best used for learning about the history of cryptography or for fun, non-sensitive applications.



