A comprehensive Python project demonstrating secure text encryption and decryption using modern cryptographic techniques. Perfect for learning cybersecurity fundamentals and implementing production-ready encryption solutions.
- ⚡ Easy-to-use, authenticated AES-128 encryption
- 🛡️ Includes HMAC for message authentication
- 🔄 Built-in key generation option
- ✅ Industry-standard symmetric encryption
- 📊 MD5, SHA-1, SHA-256, SHA-512
- 📏 Shows output length for each algorithm
⚠️ Warns about broken/deprecated algorithms- 📈 Educational comparison of hash functions
⚠️ Important: Always use the most secure methods for production environments.
| Algorithm | Security Status | Use Case |
|---|---|---|
| Fernet | ✅ Recommended | Production encryption |
| AES-CBC (Manual) | Learning purposes only | |
| MD5 | ❌ Broken | Do not use for security |
| SHA-1 | ❌ Broken | Do not use for security |
- 🔐 Key Derivation: Argon2, PBKDF2, or scrypt
- 🎯 Authenticated Encryption: AES-GCM or ChaCha20-Poly1305
- 🔑 Key Generation: Use
secretsoros.urandom()for cryptographic randomness
- Python 3.8 or higher
- pip package manager
# Clone the repository
git clone https://github.com/0407ganesh/Encryption-Decryption-project.git
cd Encryption-Decryption-project
# Install dependencies
pip install -r requirements.txt# Run the main program
python main.pyEncryption-Decryption-project/
├── main.py # Main application
├── requirements.txt # Project dependencies
└── README.md # This file
- 🔐 Cryptographic Principles: Symmetric vs asymmetric encryption
- 🔑 Key Management: Secure key generation and storage
- 🛡️ Authentication: HMAC and message authentication codes
- 📊 Hash Functions: Different algorithms and their security levels
- 💻 Python Cryptography: Using the
cryptographylibrary - ✅ Best Practices: Industry standards for secure coding
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Ganesh - @0407ganesh
- Neeraja - @rneeraja080803
- Python cryptography library
- OWASP Cryptographic Storage Cheat Sheet
- CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Happy Coding! 🚀 Stay Secure! 🔒