{"id":27266330,"url":"https://github.com/amri-tah/secure-file-transfer","last_synced_at":"2025-09-17T19:25:53.612Z","repository":{"id":214145914,"uuid":"732572024","full_name":"amri-tah/Secure-File-Transfer","owner":"amri-tah","description":"Python-based system using Fernet encryption and Merkle trees for secure and reliable file exchange. 🔐","archived":false,"fork":false,"pushed_at":"2024-01-13T03:27:46.000Z","size":492,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-13T16:51:07.299Z","etag":null,"topics":["file-transfer","merkle-tree","secure-file-transfer","socket","socket-programming"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amri-tah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-17T05:46:00.000Z","updated_at":"2024-01-13T03:27:49.000Z","dependencies_parsed_at":"2024-01-13T07:50:19.827Z","dependency_job_id":"5f851532-564d-4e39-bb4a-8fcc45b4f842","html_url":"https://github.com/amri-tah/Secure-File-Transfer","commit_stats":null,"previous_names":["amri-tah/secure-file-transfer"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amri-tah%2FSecure-File-Transfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amri-tah%2FSecure-File-Transfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amri-tah%2FSecure-File-Transfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amri-tah%2FSecure-File-Transfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amri-tah","download_url":"https://codeload.github.com/amri-tah/Secure-File-Transfer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362955,"owners_count":21091239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-transfer","merkle-tree","secure-file-transfer","socket","socket-programming"],"created_at":"2025-04-11T08:47:10.122Z","updated_at":"2025-09-17T19:25:48.533Z","avatar_url":"https://github.com/amri-tah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure File Transfer System with Merkle Tree\n\nThis 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.\n\n\n![app](https://github.com/amri-tah/Secure-File-Transfer/assets/111682039/0d246345-3d0f-4ce6-b4ee-d69bd3a58d1b)\n\n\n## Features\n\n- **Secure Communication:**\n  - Utilizes sockets for reliable communication between the client and server.\n  - Implements Fernet symmetric encryption to secure file data during transmission.\n\n- **Merkle Tree Integrity Verification:**\n  - Breaks files into chunks and constructs a Merkle tree to verify data integrity.\n  - Ensures files are transferred without corruption or loss.\n\n- **User-Friendly Interface with Streamlit:**\n  - A Streamlit web application provides an intuitive interface for users.\n  - Supports file upload, download, and file listing functionalities.\n\n- **Logging and Error Handling:**\n  - Implements logging for better traceability and debugging.\n  - Error handling to manage unexpected scenarios.\n\n## Repository Structure\n\n- **client.py:** Client-side implementation, including functions for file upload, download, and displaying available files.\n  \n- **server.py:** Server-side implementation, managing client connections, handling file transfers, and implementing Merkle tree verification.\n\n- **logs.csv:** Log file storing important events, timestamps, and the status of file transfers.\n\n- **requirements.txt:** Lists necessary dependencies for running the system.\n\n## How to Use\n\n1. Clone the repository to your local machine.\n   ```bash\n   git clone https://github.com/amri-tah/Secure-File-Transfer.git\n   ```\n\n2. Install the required dependencies.\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Run the server script on the server.\n   ```bash\n   python server.py\n   ```\n\n4. Open the Streamlit web application on the client side.\n   ```bash\n   python client.py\n   ```\n\nInteract with the system through the web interface to securely upload, download, and display files.\n\n## Screenshots\n\n#### Show Files in Server:\n\n![no-files](https://github.com/amri-tah/Secure-File-Transfer/assets/126688534/15184999-0a52-4a02-a0e7-4035588c9265)\n![show-files](https://github.com/amri-tah/Secure-File-Transfer/assets/126688534/7f24d14e-9290-45cc-9615-1095c3a201bd)\n\n\n#### Upload Files to Server:\n\n![upload](https://github.com/amri-tah/Secure-File-Transfer/assets/126688534/8a68204a-a015-432c-a0dc-5c46bdbb14b6)\n\n#### Download Files from Server:\n![download](https://github.com/amri-tah/Secure-File-Transfer/assets/126688534/09c03509-4f0d-4679-b7b8-e7bede9f2ea6)\n![download-no-file](https://github.com/amri-tah/Secure-File-Transfer/assets/126688534/4d92e36b-7b48-440b-974c-0fffbbf00842)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famri-tah%2Fsecure-file-transfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famri-tah%2Fsecure-file-transfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famri-tah%2Fsecure-file-transfer/lists"}