https://github.com/tholumuzikhuboni/prodigy_cy_01
This repository contains a Python project that demonstrates encryption and decryption using the Caesar Cipher algorithm. The project was developed as part of my cybersecurity internship at Prodigy Info Tech to understand basic encryption techniques and their role in securing data.
https://github.com/tholumuzikhuboni/prodigy_cy_01
caesar-cipher cybersecurity prodigy-infotech python python3
Last synced: 12 months ago
JSON representation
This repository contains a Python project that demonstrates encryption and decryption using the Caesar Cipher algorithm. The project was developed as part of my cybersecurity internship at Prodigy Info Tech to understand basic encryption techniques and their role in securing data.
- Host: GitHub
- URL: https://github.com/tholumuzikhuboni/prodigy_cy_01
- Owner: tholumuzikhuboni
- Created: 2024-12-03T12:58:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T15:24:17.000Z (over 1 year ago)
- Last Synced: 2025-03-27T12:14:24.682Z (over 1 year ago)
- Topics: caesar-cipher, cybersecurity, prodigy-infotech, python, python3
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Caesar Cipher
This is a Python implementation of the Caesar Cipher, a simple encryption technique that shifts each letter in the plaintext by a specified number of places. The program supports both encryption and decryption of messages.
## Features
- **Encryption**: Shifts each letter in the text by a specified shift value to create an encrypted message.
- **Decryption**: Reverses the shift to retrieve the original message.
- Handles both uppercase and lowercase letters.
- Leaves non-alphabetic characters unchanged.
## How It Works
- The program uses the ASCII values of characters to calculate the shifted positions.
- Uppercase and lowercase letters are handled separately to maintain case sensitivity.
- Non-alphabetic characters (e.g., numbers, spaces, punctuation) remain unaltered.
## Prerequisites
- Python 3.x installed on your system.
## Usage
1. **Clone the repository (if applicable)**:
```bash
git clone https://github.com/tholumuzikhuboni/PRODIGY_CY_01.git
cd PRODIGY_CV_01
2. **Run the script**:
```bash
python caesar-cipher.py
3. **Follow the on-screen instructions**:
- Choose whether to **encrypt** or **decrypt** a message.
- Enter the message to process.
- Enter a shift value (integer).
### Example
#### Encryption
**Input**:
- Operation: `encrypt`
- Message: `Hello, World!`
- Shift: `3`
**Output**:
```plaintext
Encrypted message: Khoor, Zruog!
```
#### Decryption
**Input**:
- Operation: `decrypt`
- Message: `Khoor, Zruog!`
- Shift: `3`
**Output**:
```plaintext
Decrypted message: Hello, World!
```