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

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.

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!
```