An open API service indexing awesome lists of open source software.

https://github.com/alahmad-loay2/encryption-project

Caesar Cipher Encryption in C++ — Built and tested on Ubuntu using multithreading, multiprocessing, and standard methods. Designed for Linux systems.
https://github.com/alahmad-loay2/encryption-project

ceaser-cipher cpp decryption encryption linux multiprocessing multithreading ubuntu

Last synced: about 1 month ago
JSON representation

Caesar Cipher Encryption in C++ — Built and tested on Ubuntu using multithreading, multiprocessing, and standard methods. Designed for Linux systems.

Awesome Lists containing this project

README

          

# Caesar Cipher Project

C++ program to encrypt/decrypt text files using Caesar cipher (shift by 2).

## Versions
- Normal (single-threaded)
- Process-based (fork)
- Multithreaded (threads + semaphores) — fastest

## Usage (Ubuntu)
```bash
git clone https://github.com/alahmad-loay2/encryption-project.git
```
cd to directory
./normal-way
./multi-process
./multi-thread

#### or g++ to re create executables

## results
multi threading version was the fastest due to having a shared memory and not being a cpu intesive task

![Alt text](https://github.com/alahmad-loay2/encryption-project/blob/main/images/Screenshot%20from%202024-11-26%2020-29-49.png)

![Alt text](https://github.com/alahmad-loay2/encryption-project/blob/main/images/Screenshot%20from%202024-11-26%2020-31-09.png)

![Alt text](https://github.com/alahmad-loay2/encryption-project/blob/main/images/Screenshot%20from%202024-11-26%2020-33-05.png)

---

[Go to Top](#caesar-cipher-project)