Skip to content

This C++ project implements a rotor machine encryption system capable of encrypting and decrypting files. It includes a Makefile for easy compilation and provides a command-line interface for various operations.

License

Notifications You must be signed in to change notification settings

X-XENDROME-X/Rotor-Encryption-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rotor-Encryption-System

This C++ project implements a rotor machine encryption system capable of encrypting and decrypting files. It includes a Makefile for easy compilation and provides a command-line interface for various operations.

The project consists of the following files:

  • Makefile: Used to compile the C++ program named "rotorMachine" from source code files "rotorMachine.cpp" and "Main.cpp". It specifies compiler settings and rules for building the executable and cleaning up generated files.

  • Main.cpp: Behaves as a command-line interface for the rotor machine, initializing rotor configurations, and encrypting or decrypting files based on user input.

  • rotorMachine.cpp: Contains the code for rotor machine encryption, providing file input/output functions, rotor manipulation, and encryption/decryption functionality.

  • rotorMachine.h: Header file providing function declarations for initializing, configuring, and using rotors to encrypt and decrypt files.

Usage

  1. To build the rotorMachine executable:
    make
  2. Initialize Rotor Machine
    ./rotorMachine -i <config_file>
  3. To encrypt a file with a specified rotor configuration
    ./rotorMachine -e <input_file> <output_file> -r <rotor_position_1> <rotor_position_2> -i <config_file>
  4. To decrypt a file with a specified rotor configuration
    ./rotorMachine -d <input_file> <output_file> -r <rotor_position_1> <rotor_position_2> -i <config_file>

About

This C++ project implements a rotor machine encryption system capable of encrypting and decrypting files. It includes a Makefile for easy compilation and provides a command-line interface for various operations.

Topics

Resources

License

Stars

Watchers

Forks