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.
- 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
- Python 3.10
- Flask
- PyCryptodome (for cryptographic operations)
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
git clone https://github.com/gbennnn/data-encryption-standard.git
cd data-encryption-standard
python -m venv .venv
source .venv/bin/activate # On Linux/macOS
.venv\Scripts\activate # On Windows
pip install -r requirements.txt
python app.py
Visit: http://127.0.0.1:5000
- Plaintext:
Learning Cryptography
- Key:
mykey123
- Encrypted Output:
b0a0986d2dfa5c708b7a77d37d21a48b61016932a91fc1c6
This project is licensed under the MIT License. Feel free to use and modify it for educational or personal use.
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.