Giter Club home page Giter Club logo

secure-file-sharing-vault's Introduction

Secure-File-Sharing-Vault

Description

This desktop application allows users to share files in an end-to-end encrypted manner using hybrid cryptography. Before being uploaded to the server, files are sliced into several parts which are encrypted using three different symmetric cyphers on a round-robin basis; the symmetric ciphers used are DES, AES, and Blowfish. Afterward, the encrypted parts are added together into a single encrypted file. For every file, there are three randomly generated keys corresponding to each of the symmetric ciphers used. These keys are then merged into one file and encrypted using another key called a master key. Both the encrypted file and its encrypted keys file are uploaded to the FTP server while the master key is stored locally on the uploader's device. Every user is granted a pair of public and private keys on registration; these are used for the public key cryptosystem, specifically RSA, used for key exchange. When a user needs to access a certain file, they should send a request to the owner who may grant or deny access. If access is granted, the owner encrypts the master key using the public key of the receiver before sending it to them. Only the intended receiver can then decrypt the master key using their private key. The receiver can now successfully decrypt the keys file and use the recovered keys to decrypt the resource file.

This desktop application offers the following functionality:

  • Users can upload files securely and download files they have access to.
  • Users can browse through the encrypted files available on the server.
  • Users can send, recieve, and monitor file requests.
  • Users can deny or accept requests.

Used Cryptographic Algorithms

  • Rivest-Shamir-Adleman (RSA)
  • Advanced Encryption Standard (AES)
  • Data Encryption Standard (DES)
  • Blowfish

Tech Stack

  • A Python binding to the Tk GUI toolkit called Tkinter was used for the user interface.
  • Flask was used to build the backend server.
  • PostgreSQL was used for the backend database.
  • SQLite was used for the frontend database.

Guide

First, you need to install all the dependencies by running pip install -r requirements.txt from a command prompt. Make sure you are in the project directory and using administrative privileges.

Running the Flask Server:

1- Make sure you are in the backend directory by running cd backend.

2- Run flask run to get the server running.

Running the FTP Server:

1- You need to install the python ftp server as follows: python -m pip install python-ftp-server.

2- From the project directory, run the FTP server as follows: python -m python_ftp_server -u "admin" -p "admin" --ip 0.0.0.0 --port 6060 -d "ftp_storage".

Running the GUI:

1- Make sure you are in the frontend directory by running cd frontend.

2- Run python main.py and the desktop application should start running successfully.

Demo

Upon app launch, this registration panel appears:

image

You can register a new account or log in to an already existing account:

image

After logging in, the following screen appears:

image

To upload a file simply right click in the files view and click upload then choose the file you need to upload:

image

image

In this example, this is how the original file looks like:

image

After successful upload, the FTP server now has the encrypted file and its encrypted keys file as follows:

image

This is how the file, in this example, looks like after encryption:

image

Now, any user can find the uploaded file in the files view:

image

To request access to a certain file, Right click the file in the files view and then click request access:

image

All incoming and outgoing requests can be seen on the left side of the screen. In the following image, we can see how both the sender and the reciever can see the request:

image

A user can cancel any pending outgoing requests they sent as follows. A bell icon beside a file indicates an access request is pending for that file:

image

The owner of the requested files can accept or decline incoming requests to those files as follows:

image

Accepted requests are indicated with the green color. A check mark beside a requested file indicates that this account can now access the file:

image

While declined requests are indicated with the red color. A cross mark beside a requested file indicates that this account has been denied access to that particular file:

image

If you wish to download a file that you have access to, simply right click the file then click download and choose where to save the file:

image

image

After downloading the fie we have been granted access to, we can see that it is no longer encrypted and that it has been decrypted successfully:

image

secure-file-sharing-vault's People

Contributors

3omara avatar ali-elganzory avatar

Watchers

 avatar

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.