GithubHelp home page GithubHelp logo

wsa-2002 / file-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vincent0426/file-server

0.0 0.0 0.0 84 KB

A file server implementing public-private key encryption and decryption.

Python 100.00%

file-server's Introduction

File Server

A file server implemented in Python, while the server doesn't know the content of the files.

Set up

Backend Server

  1. Fill in the environment variables in the .env file.
    cp .env.example .env
    # Fill in variables
  2. Start backend service.
    docker-compose up -d

Client

Note: Client CLI is in client/

Client CLI is implemented in Python, and the program doesn't require any setup besides installing prettytable package and openssl are installed in your system environment, you may install it directly or in the environment you prefer, for example:

pip install prettytable

Usage:

  1. Login / Register
    ./main
    1. If you haven't set up configuration in your local environment, you will be required to specify the configuration directory, default is set ~/.fileserver
    2. Then you will be required to set up username and password, the configuration will be stored in configuration directory you assigned in step i.
  2. Get your user id
    ./main --get-id
    1. If you want to provide your uuid to others for file transaction, you may get your user uuid through this command.
  3. Upload file
    ./main --upload --user <user_uuid> <filepath>
    1. <user_uuid> is the receiver's user uuid, while filepath is the path of the file you want to send.
  4. Download file
    ./main --download
    1. This command will show you all transactions that you receive, and you may enter the transaction uuid to retrieve the file.

file-server's People

Contributors

vincent0426 avatar wsa-2002 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.