This project implements a Caesar Cipher, a type of substitution cipher in which each letter in the plaintext is shifted a certain number of places down or up the alphabet. This README provides instructions on how to set up and run both the frontend and backend components of the project.
The Caesar Cipher is one of the simplest and most widely known encryption techniques. This project includes a web-based interface for encrypting and decrypting messages using the Caesar Cipher algorithm.
frontend/
: Contains the frontend code (React, TypeScript, React Bootstrap).backend/
: Contains the backend code (Python, FastAPI).
- Node.js (v14 or higher)
- npm (v6 or higher)
- Python (v3.10 or higher)
- pip
-
Navigate to the
frontend
directory:cd frontend
-
Install dependencies:
npm install
-
Start the frontend development server:
npm run dev
-
Navigate to the
backend
directory:cd backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Start the backend server:
fastapi dev app.py
- Ensure both the frontend and backend servers are running.
- Open your web browser and navigate to
http://localhost:5173
(or the port specified in your frontend configuration). - Use the web interface to encrypt and decrypt messages using the Caesar Cipher.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
If you encounter any issues, please open an issue on the repository. Provide as much detail as possible to help us resolve the problem quickly.
For any questions or inquiries, please contact [[email protected]].