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

https://github.com/techtalkdev/python_encryption_program

Simple character-substitution encryption program in Python. Encrypt and decrypt text using a randomly shuffled key. Great for learning basic cryptography and Python input/output.
https://github.com/techtalkdev/python_encryption_program

Last synced: 11 months ago
JSON representation

Simple character-substitution encryption program in Python. Encrypt and decrypt text using a randomly shuffled key. Great for learning basic cryptography and Python input/output.

Awesome Lists containing this project

README

          

# 🔐 Python Encryption Program

A simple terminal-based encryption and decryption tool using basic character substitution. This project demonstrates how to scramble messages using a shuffled key made from letters, digits, punctuation, and spaces.

---

## 💡 Features

- Encrypt any text using a randomized substitution cipher
- Decrypt messages using the generated key
- Uses printable characters including spaces, punctuation, digits, and letters
- Beginner-friendly Python script

---

## 🚀 How It Works

1. Generates a randomized key from all printable characters.
2. Replaces each character in your message with its mapped counterpart from the shuffled key.
3. Reverses the process to decrypt a message.

---

## ▶️ Run the Program

### Prerequisites
- Python 3.x installed

### Usage

```bash
python encrypt.py