This is a repository containing an implementation of a encryption C language based on Enigma machine. The Enigma machine was used during World War II to encrypt and decrypt messages. This project is a simplified and educational.
- Encryption and Decryption: Implementation of basic encryption and decryption functionalities.
- Customizable Settings: Allows customization settings such as rotors initial positions.
- Command Line Interface (CLI): A simple command-line interface.
- C Compiler (e.g., GCC)
- POSIX-compatible operating system
-
Clone this repository:
git clone [email protected]:Marleyedrg/encryption_in_C.git
-
Compile the source code:
cd encryption_in_C gcc app.c -o app
-
Run the command-line interface (CLI):
./encryption_in_C [message]
or
./encryption_in_C [message] [int(1 to 26)] [int(1 to 26)] [int(1 to 26)]
-
Follow the provided instructions to encrypt or decrypt messages.
Here are some basic examples of using the algorithm via CLI:
- Encrypt a message:
./app hello 14 5 3
OUTPUT:
>> WYOMH
- Decrypt a message:
./app WYOMH 14 5 3
OUTPUT:
>> HELLO
Contributions are welcome! If you wish to improve this project, please open an issue to discuss your ideas or submit a pull request with your changes.
This project is licensed under the MIT License.