Skip to content

garghub/Encryption-Decryption-ManInTheMiddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Encryption-Decryption-ManInTheMiddle

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.

Features

  • 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.

Prerequisites

  • Python 3.x installed on your system.
  • Basic understanding of cryptographic principles and Python programming.

Getting Started

  1. Clone the Repository:

    git clone https://github.com/garghub/Encryption-Decryption-ManInTheMiddle.git
    cd Encryption-Decryption-ManInTheMiddle
  2. 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.)

Project Structure

  • main.py: The primary script demonstrating the encryption/decryption process and the MITM attack simulation.
  • README.md: This file, providing an overview and instructions.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

License

This project is open-source and available under the MIT License.