Skip to content

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.

License

Notifications You must be signed in to change notification settings

gbennnn/data-encryption-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 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

git clone https://github.com/gbennnn/data-encryption-standard.git
cd data-encryption-standard

2. Create & Activate a Virtual Environment (Optional)

python -m venv .venv
source .venv/bin/activate   # On Linux/macOS
.venv\Scripts\activate      # On Windows

3. Install Dependencies

pip install -r requirements.txt

4. Run the App

python app.py

Visit: http://127.0.0.1:5000

💡 Example

  • Plaintext: Learning Cryptography
  • Key: mykey123
  • Encrypted Output: b0a0986d2dfa5c708b7a77d37d21a48b61016932a91fc1c6

📜 License

This project is licensed under the MIT 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

image-des-web

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •