Skip to content

M0Bry/Hybrid-Crypto-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hybrid Cryptography Secure Communication

A secure client-server communication system developed in Python that combines RSA asymmetric encryption for secure key exchange with DES symmetric encryption for efficient data encryption.

The project demonstrates how hybrid cryptography enables secure communication between a Windows host and a Kali Linux virtual machine while allowing encrypted network traffic to be analyzed using Wireshark.


Features

  • Hybrid Cryptography (RSA + DES)
  • RSA Public/Private Key Generation
  • Secure Session Key Exchange
  • DES Message Encryption & Decryption
  • Cross-Platform Communication
  • TCP Socket Programming
  • Windows ↔ Kali Linux Communication
  • Wireshark Traffic Monitoring
  • Secure Client-Server Architecture
  • Python Implementation

Communication Workflow

Phase 1 – Hybrid Key Exchange

  1. Generate RSA key pairs.
  2. Exchange public keys.
  3. Generate a DES session key.
  4. Encrypt the DES key using the recipient's RSA public key.
  5. Decrypt the DES key using the RSA private key.

Phase 2 – Secure Data Exchange

  1. Encrypt messages using DES.
  2. Send encrypted ciphertext.
  3. Decrypt received messages.
  4. Continue secure bidirectional communication.

Technologies

Programming Language

  • Python

Cryptography

  • RSA
  • DES
  • PKCS1_OAEP
  • PyCryptodome

Networking

  • TCP Sockets
  • Client-Server Architecture

Security Tools

  • Wireshark

Platforms

  • Windows
  • Kali Linux

Project Structure

Hybrid-Cryptography/
│
├── des_cipher.py
├── rsa_keys.py
├── server_a.py
├── server_b.py
├── README.md
└── LICENSE

Security Features

  • RSA Public Key Cryptography
  • DES Symmetric Encryption
  • Secure Session Key Exchange
  • Encrypted Network Communication
  • Cross-Platform Compatibility
  • Network Traffic Verification
  • Hybrid Encryption Architecture

Applications

  • Secure Network Communication
  • Cybersecurity Education
  • Cryptography Demonstrations
  • Secure Client-Server Systems
  • Information Security
  • Academic Projects

Future Improvements

  • Upgrade DES to AES-256
  • RSA-2048 / RSA-4096 Support
  • Digital Signatures
  • TLS Integration
  • Mutual Authentication
  • Secure File Transfer
  • Graphical User Interface
  • Certificate-Based Authentication
  • Multiple Client Support

Author

Mohamed AlBry

Faculty of Computer Science & Artificial Intelligence


License

This project is licensed under the MIT License.

About

A Python-based hybrid cryptography system implementing RSA-secured key exchange and DES-encrypted client-server communication with cross-platform support and Wireshark traffic analysis.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages