Skip to content

srikxcipher/secure-file-sharing-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Secure File Sharing System using DES and Diffie Hellman Algorithm.


System Diagram

System Diagram

File Encryption Process

  1. User selects a file using the "Send File" button.
  2. File is read as binary data.
  3. Diffie-Hellman key exchange is performed to securely exchange the key.
  4. File data is padded and encrypted using the DES algorithm.
  5. Encrypted data is sent to the server along with a SHA-256 hash for integrity verification.

File Decryption (Server-Side)

  1. Server receives the encrypted file.
  2. Performs the same Diffie-Hellman key exchange to derive the shared key.
  3. Uses the shared key to decrypt the file via DES.
  4. Verifies file integrity using the provided SHA-256 hash.
  5. Decrypted file is saved or processed as needed.

System Workflow

  1. Client:
    • Selects a file using the GUI.
    • Performs key exchange (Diffie-Hellman).
    • Encrypts file using DES.
    • Sends encrypted file and hash to server.
  2. Server:
    • Receives the encrypted file.
    • Repeats key exchange.
    • Decrypts using DES.
    • Verifies integrity with SHA-256.

Quick Legend

  • DH: Diffie-Hellman (key exchange)
  • DES: Data Encryption Standard
  • SHA-256: Secure Hash Algorithm (integrity check)
  • Client Side: handles encryption and hashing
  • Server Side: handles decryption and verification

Snapshots


Sender ➡️

Receiver ➡️

Releases

No releases published

Packages

No packages published

Languages