This project implements a simple HTTP server that provides functionality for encrypting and decrypting text using the Caesar cipher.
main.c
: Implementation of the HTTP server that processes encryption and decryption requests.caesar.c
: Functions for encrypting and decrypting text.caesar.h
: Header file with function declarations.test.py
: Script for stress testing the server.
-
Compile the server:
mkdir build cd build cmake build .. make
-
Run the server:
./Caesar-Cipher_C
-
Test the server:
- Encryption:
http://localhost:8080/encrypt?text=Hello&shift=3
- Decryption:
http://localhost:8080/decrypt?text=Khoor&shift=3
- Encryption:
-
Run the stress test (optional):
python stress_test.py
libmicrohttpd
: For the HTTP server implementation.requests
: For performing HTTP requests in the stress test script. Install it with:pip install requests
- Easy integration of encryption/decryption into web applications.
- Stress testing capability to evaluate performance.
Free to use for educational and research purposes.