Git Product home page Git Product logo

enigma-machine's Introduction

Enigma Machin Software

To start the program, open your cmd or terminal and change the current working directory to the location where you want to clone the repository. Then clone the repo.

The repository consists of 5 files.

  1. cw1.py: This is the main Enigma file. Users will run this file.
  2. plugboard.py: Plugboards are stored in this file.
  3. rotor.py: Rotors and reflectors are stored in this file.
  4. test.txt: text file to test the import file feature
  5. CW1_report.pdf: detailed report on the program

PRE-REQUISITES Programming Language: Python 3.9.7

HOW TO USE THE CODE?

After cloning the repository, run the “cw1.py” file. Once the program starts, it will first print out a menu to the user to choose whether to decrypt or encrypt a message. To make the code have a coherent flow sequence, the menu is showed every time after the user executes a selection, he/she can end the program by selecting the option that ends it. After choosing whether to decrypt or encrypt a message, below are the steps that will follow:

  1. Choose 3 rotors by order.
  2. Choose a reflector.
  3. Choose the starting point of the 3 rotors.
  4. Choose whether you want to use a plugboard or not.
    1. If yes, choose whether you want a preset one or you want to configure one.
      1. If a preset one, you choose one.
      2. If you want to configure one, you enter your pairings.
  5. Choose whether you want to encrypt/decrypt a typed message or an imported file.
    1. If a typed message, enter your message.
    2. If an imported file, enter the file name.
  6. Choose whether you want to save the output in a file or not.
    1. If yes, enter a filename.

enigma-machine's People

Contributors

toqahassib avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.