This project demonstrates encryption and decryption using the Caesar Cipher technique, where each letter in the plaintext is shifted a specified number of places. It provides a simple implementation for encrypting and decrypting messages through a web interface.
- Encrypt and decrypt messages using a specified shift value.
- Supports a customizable alphabet and shift key.
- Options to maintain, lower, or upper case letters.
- Handles non-alphabet characters by removing or ignoring them.
index.html
: The main HTML file that contains the structure and layout of the web interface.style.css
: The CSS file that styles the web interface.caesar.js
: The JavaScript file that contains the logic for the Caesar Cipher encryption and decryption.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/caesar-cipher.git
-
Navigate into the directory:
cd caesar-cipher
-
Open
index.html
in your web browser.
- Open the
index.html
file in your preferred web browser. - Use the form to enter your plaintext or ciphertext.
- Select whether you want to encode (encrypt) or decode (decrypt).
- Adjust the shift key, modulo, and other settings as needed.
- Click the "Submit" button to see the encrypted or decrypted result.
To encrypt the message "Hello, World!" with a shift of 3:
- Enter "Hello, World!" in the plaintext area.
- Ensure "Encode" is selected.
- Set the shift key to 3.
- Click "Submit" to see the ciphertext.
If you would like to contribute to this project, please fork the repository and create a pull request. Feel free to submit issues and feature requests as well.