This project demonstrates a Python-based implementation of the ElGamal encryption scheme, focusing on the vulnerabilities exposed during a man-in-the-middle (MITM) attack. It serves as an educational tool to understand the mechanics of public-key cryptography and the importance of secure key exchange protocols.
- ElGamal Encryption & Decryption: Implements the ElGamal algorithm for secure message encryption and decryption.
- Man-in-the-Middle Attack Simulation: Illustrates how an attacker can intercept and potentially compromise communications if key exchanges are not securely handled.
- Educational Insight: Provides a practical example of cryptographic concepts and potential vulnerabilities in unsecured channels.
- Python 3.x installed on your system.
- Basic understanding of cryptographic principles and Python programming.
-
Clone the Repository:
git clone https://github.com/garghub/Encryption-Decryption-ManInTheMiddle.git cd Encryption-Decryption-ManInTheMiddle
-
Run the Script: Execute the main Python script to observe the encryption, decryption, and MITM simulation.
python main.py
(Note: Replace
main.py
with the actual script name if different.)
main.py
: The primary script demonstrating the encryption/decryption process and the MITM attack simulation.README.md
: This file, providing an overview and instructions.
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is open-source and available under the MIT License.