GithubHelp home page GithubHelp logo

amri-tah / secure-file-transfer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 492 KB

Python-based system using Fernet encryption and Merkle trees for secure and reliable file exchange. ๐Ÿ”

License: MIT License

Python 100.00%
file-transfer merkle-tree socket socket-programming secure-file-transfer

secure-file-transfer's Introduction

Secure File Transfer System with Merkle Tree

This repository contains a secure file transfer system implemented in Python, providing a reliable and encrypted method for uploading, downloading, and displaying files between a client and server. The system incorporates Fernet symmetric encryption for secure data transmission and uses Merkle trees for integrity verification.

app

Features

  • Secure Communication:

    • Utilizes sockets for reliable communication between the client and server.
    • Implements Fernet symmetric encryption to secure file data during transmission.
  • Merkle Tree Integrity Verification:

    • Breaks files into chunks and constructs a Merkle tree to verify data integrity.
    • Ensures files are transferred without corruption or loss.
  • User-Friendly Interface with Streamlit:

    • A Streamlit web application provides an intuitive interface for users.
    • Supports file upload, download, and file listing functionalities.
  • Logging and Error Handling:

    • Implements logging for better traceability and debugging.
    • Error handling to manage unexpected scenarios.

Repository Structure

  • client.py: Client-side implementation, including functions for file upload, download, and displaying available files.

  • server.py: Server-side implementation, managing client connections, handling file transfers, and implementing Merkle tree verification.

  • logs.csv: Log file storing important events, timestamps, and the status of file transfers.

  • requirements.txt: Lists necessary dependencies for running the system.

How to Use

  1. Clone the repository to your local machine.

    git clone https://github.com/amri-tah/Secure-File-Transfer.git
  2. Install the required dependencies.

    pip install -r requirements.txt
  3. Run the server script on the server.

    python server.py
  4. Open the Streamlit web application on the client side.

    python client.py

Interact with the system through the web interface to securely upload, download, and display files.

Screenshots

Show Files in Server:

no-files show-files

Upload Files to Server:

upload

Download Files from Server:

download download-no-file

secure-file-transfer's People

Contributors

amri-tah avatar sarandharshansp avatar

Watchers

 avatar

Forkers

sarandharshansp

secure-file-transfer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.