Skip to content

Ali-Vazife/EnigmaMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Enigma Machine Simulation

This project is a simple simulation of the Enigma machine, a historical encryption device used during World War II. The code is implemented in Node.js and consists of two main files: rotateState.js and codeDecode.js. The rotateState.js file contains the core functionality, including rotor initialization and encryption logic, while codeDecode.js serves as the entry point for encoding and decoding messages.

This project is a work in progress and currently represents a simplified version of the Enigma machine.

Alt Text

History

The Enigma machine is a cipher device developed and used in the early- to mid-20th century to protect commercial, diplomatic, and military communication. It was employed extensively by Nazi Germany during World War II, in all branches of the German military. The Enigma machine was considered so secure that it was used to encipher the most top-secret messages.

Alt Text

reference:

Usage

  1. Run the Enigma Machine:
node codeDecode.js code "word"

Replace "word" with the single word you want to encode or decode. The simulated Enigma machine will process the input, considering rotor settings and plugboard connections.

To change daily rotors:

node codeDecode.js changeRotors

About

Node.js Enigma machine simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published