A simple Python implementation demonstrating DES (Data Encryption Standard) encryption and decryption using the PyCryptodome library.
The Data Encryption Standard (DES) is one of the earliest symmetric-key encryption algorithms. Although it has been superseded by more secure algorithms such as AES, DES remains an important algorithm for understanding the fundamentals of cryptography.
This project demonstrates how plaintext can be encrypted and decrypted using DES in Python.
Note: This implementation is intended for educational purposes only. DES is considered insecure for modern applications due to its small key size.
- DES Encryption
- DES Decryption
- Interactive user input
- Beginner-friendly implementation
- Command-line interface
- Python 3
- PyCryptodome
Install PyCryptodome:
pip install pycryptodomeClone the repository:
git clone https://github.com/Shreyb7/des-encryption-python.gitNavigate into the folder:
cd des-encryption-pythonRun:
python des_encryption_demo.pydes-encryption-python
│
├── des_encryption_demo.py
├── README.md
├── requirements.txt
└── .gitignore
- Understand symmetric key cryptography
- Learn DES encryption
- Learn DES decryption
- Understand block cipher concepts
- Explore Python cryptography libraries
Enter plaintext:
Hello World
Encrypted Ciphertext:
b'p*\xda\x9e]\x04\xf3\x14\xc48\xfb\xe67\xb2\x0eu'
Decrypted Plaintext:
Hello World
DES is considered cryptographically insecure because of its 56-bit key size. Modern applications should use AES instead.