https://github.com/darshan-kc/python-vigenere-cipher
Vigenere Ciphere using python
https://github.com/darshan-kc/python-vigenere-cipher
cryptography python3
Last synced: 10 months ago
JSON representation
Vigenere Ciphere using python
- Host: GitHub
- URL: https://github.com/darshan-kc/python-vigenere-cipher
- Owner: Darshan-KC
- Created: 2024-11-27T15:33:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-31T15:39:20.000Z (about 1 year ago)
- Last Synced: 2025-03-31T16:59:17.336Z (about 1 year ago)
- Topics: cryptography, python3
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Vigenère Cipher
This repository contains a Python implementation of the Vigenère Cipher, a classic cryptographic technique for encoding and decoding messages. This program is optimized and implemented without relying on external libraries, offering a clean and straightforward approach to encryption and decryption.
---
## Features
- **Encrypt messages** using the Vigenère Cipher algorithm.
- **Decrypt messages** to retrieve the original text.
- **Custom key support** for personalized encryption.
- Simple and efficient implementation in Python.
---
## Table of Contents
- [About the Vigenère Cipher](#about-the-vigenère-cipher)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
---
## About the Vigenère Cipher
The Vigenère Cipher is a polyalphabetic substitution cipher that uses a keyword to encrypt a message. Each letter in the plaintext is shifted by a value determined by the corresponding letter in the key, creating a more secure encryption than simple substitution ciphers.
---
## Requirements
- Python 3.x
No additional libraries or dependencies are required.
---
## Installation
1. Clone the repository:
```bash
git clone https://github.com/Darshan-KC/Python-Vigenere-Cipher.git
cd Python-Vigenere-Cipher
```
2. Ensure you have Python 3.x installed.
---
## Usage
Run the program using Python:
```bash
python vigenere_cipher.py
```
You can follow the prompts to either encrypt or decrypt a message.
---
## Examples
### Encrypting a Message
Input:
```
Enter plaintext: HELLO
Enter key: KEY
```
Output:
```
Encrypted text: RIJVS
```
### Decrypting a Message
Input:
```
Enter ciphertext: RIJVS
Enter key: KEY
```
Output:
```
Decrypted text: HELLO
```
---
## Contributing
Contributions are welcome! If you have ideas for improvements or new features, feel free to fork the repository, make changes, and submit a pull request.
---
## License
This project is licensed under the MIT License. See the `LICENSE` file for details.