https://github.com/gbennnn/data-encryption-standard
A simple web-based DES encryption tool built with Python and Flask. This app allows users to input plaintext and an 8-character key to encrypt text using the Data Encryption Standard (DES) algorithm and view the ciphertext in hexadecimal format.
https://github.com/gbennnn/data-encryption-standard
cryptography data-encryption-standard des encryption-algorithms flask python
Last synced: about 1 month ago
JSON representation
A simple web-based DES encryption tool built with Python and Flask. This app allows users to input plaintext and an 8-character key to encrypt text using the Data Encryption Standard (DES) algorithm and view the ciphertext in hexadecimal format.
- Host: GitHub
- URL: https://github.com/gbennnn/data-encryption-standard
- Owner: gbennnn
- License: mit
- Created: 2025-05-25T17:52:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-01T00:27:08.000Z (about 1 year ago)
- Last Synced: 2025-06-07T15:45:49.233Z (about 1 year ago)
- Topics: cryptography, data-encryption-standard, des, encryption-algorithms, flask, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ DES Encryption Web App (Flask)
A simple web application built with **Python** and **Flask** that enables users to perform text encryption using the **Data Encryption Standard (DES)** algorithm. The app provides a user-friendly interface to input plaintext and an 8-character key, and displays the encrypted result in hexadecimal format.
## ๐ Features
- Encrypt text using the DES algorithm (ECB mode)
- User-friendly web interface built with HTML and Flask
- Key validation to ensure exactly 8 characters
- Displays encrypted output in hexadecimal format
## ๐ Technologies Used
- Python 3.10
- Flask
- PyCryptodome (for cryptographic operations)
## ๐ฆ Project Structure
```
des\_flask\_app/
โ
โโโ app.py # Main Flask application
โโโ requirements.txt # Python dependencies
โโโ static/
โโโ style.css # Style for HTML
โโโ templates/
โโโ index.html # HTML template for UI
````
## ๐งช How to Run
### 1. Clone the Repository
```bash
git clone https://github.com/gbennnn/data-encryption-standard.git
cd data-encryption-standard
````
### 2. Create & Activate a Virtual Environment (Optional)
```bash
python -m venv .venv
source .venv/bin/activate # On Linux/macOS
.venv\Scripts\activate # On Windows
```
### 3. Install Dependencies
```bash
pip install -r requirements.txt
```
### 4. Run the App
```bash
python app.py
```
Visit: [http://127.0.0.1:5000](http://127.0.0.1:5000)
## ๐ก Example
* **Plaintext**: `Learning Cryptography`
* **Key**: `mykey123`
* **Encrypted Output**: `b0a0986d2dfa5c708b7a77d37d21a48b61016932a91fc1c6`
## ๐ License
This project is licensed under the [MIT License](LICENSE). Feel free to use and modify it for educational or personal use.
## ๐ค Contributing
Contributions, feedback, and ideas are welcome! Fork this repo and submit a pull request if you'd like to improve it or add new features.
---
## Preview
