Simple encrypted file transfer service for humans
Project description
Expedite
Simple encrypted file transfer service for humans
Introduction
Expedite is a simple encrypted file transfer service that allows for people to share synchronously assets among each other without having to rely on third party file sharing services (and constantly worrying about how their data might be used) or feeling the need of having publicly visible IP addresses (and constantly worrying about script kiddies attacking your computer).
Expedite Server can be deployed on a virtual private server having an IP address that is discoverable by the Expedite Client users to broker file contents. The transfers facilitated using WebSockets are end-to-end encrypted with the use of 128-bit Advanced Encryption Standard and the server is restricted to logging only unidentifiable activities to the volatile memory.
Expedite is currently in BETA phase and if you like to direction the project is heading towards, kindly consider helping me out by starring the project repository, filing issue tickets for software errors or feature requests, contributing to the codebase of the project or sponsoring me to help maintain the servers and to help me keep working on more FOSS projects like these.
Offerings
You can either deploy your own Expedite Server to broker file contents from your group of Expedite Client users or you can use the following publicly available servers setup by me instead. Picking the server that is closer to your group of users can help with improving performance and reliability of the transfer. Please open up a pull request if you wish to list your server here.
-
Mumbai, MH
wss://expedite-mumb.gridhead.net
orwss://expedite-mumb.gridhead.net:443
Grade A - Qualys
Grade A - TestSSL
-
Atlanta, GA
wss://expedite-atla.gridhead.net
orwss://expedite-atla.gridhead.net:443
Grade A - Qualys
Grade A - TestSSL
Illustration
Client
Bridge - Info
Bridge - Delivering - Static
Bridge - Collecting - Static
Bridge - Delivering - Progress
Bridge - Collecting - Progress
Prompt - Help
(venv) $ ed-prompt --help
Usage: ed-prompt [OPTIONS] COMMAND [ARGS]...
Configure the service particulars before starting it
Options:
-h, --host TEXT Set the address for the service endpoint
[required]
-t, --time INTEGER RANGE Set the expiry period for participants [default:
150; 5<=x<=300]
-e, --endo TEXT Set the identity of the opposing client
--version Show the version and exit.
--help Show this message and exit.
Commands:
recv Collect file through an encrypted transfer
send Deliver file through an encrypted transfer
Prompt - Delivering - Help
(venv) $ ed-prompt send --help
Usage: ed-prompt send [OPTIONS]
Deliver file through an encrypted transfer
Options:
-p, --pswd TEXT Set the password for delivering encryption
[default: CD87C56C]
-f, --file PATH Set the filepath for delivering to network
[required]
-s, --size INTEGER RANGE Set the unit size for file chunking (in B)
[default: 65536; 1024<=x<=524288]
--help Show this message and exit.
Prompt - Collecting - Help
(venv) $ ed-prompt recv --help
Usage: ed-prompt recv [OPTIONS]
Collect file through an encrypted transfer
Options:
-p, --pswd TEXT Set the password for collecting encryption [required]
--help Show this message and exit.
Prompt - Delivering - Static
(venv) $ ed-prompt --host wss://expedite-mumb.gridhead.net --time 150 --endo 2E8EC1AC send --pswd PASSWORDINCOMING --size 65536 --file dist/ed-bridge
[2024-11-12 17:09:02] Expedite Client v0.1.0
[2024-11-12 17:09:02] Addr. wss://expedite-mumb.gridhead.net
[2024-11-12 17:09:02] Pass. PASSWORDINCOMING
[2024-11-12 17:09:02] Plan. DELIVERING
[2024-11-12 17:09:02] Wait. 150 seconds
[2024-11-12 17:09:02] Please wait for 2E8EC1AC to begin interaction.
[2024-11-12 17:09:02] Attempting to connect to the network.
[2024-11-12 17:09:02] Successfully connected to the network.
[2024-11-12 17:09:02] You are now identified as 14CF663D in the network.
[2024-11-12 17:09:02] Attempting pairing with 2E8EC1AC.
[2024-11-12 17:09:02] Starting transmission.
[2024-11-12 17:09:02] Generating cryptography sign.
[2024-11-12 17:09:02] Collecting delivering summon from 2E8EC1AC.
[2024-11-12 17:09:02] Delivering contents for 'ed-bridge' (78.32MB) to 2E8EC1AC.
[2024-11-12 17:09:19] Delivering contents digest for confirmation.
[2024-11-12 17:09:20] Contents integrity verified (Mean 4.36MB/s).
[2024-11-12 17:09:20] Delivering done after 18.12 seconds.
[2024-11-12 17:09:20] Exiting.
Prompt - Collecting - Static
(venv) $ ed-prompt --host wss://expedite-mumb.gridhead.net --time 150 --endo 1AAE5935 recv --pswd PASSWORDINCOMING
[2024-11-12 17:15:10] Expedite Client v0.1.0
[2024-11-12 17:15:10] Addr. wss://expedite-mumb.gridhead.net
[2024-11-12 17:15:10] Pass. PASSWORDINCOMING
[2024-11-12 17:15:10] Plan. COLLECTING
[2024-11-12 17:15:10] Wait. 150 seconds
[2024-11-12 17:15:10] Please wait for 1AAE5935 to begin interaction.
[2024-11-12 17:15:10] Attempting to connect to the network.
[2024-11-12 17:15:10] Successfully connected to the network.
[2024-11-12 17:15:10] You are now identified as 96B33383 in the network.
[2024-11-12 17:15:10] Attempting pairing with 1AAE5935.
[2024-11-12 17:15:10] Starting transmission.
[2024-11-12 17:15:10] Generating cryptography sign.
[2024-11-12 17:15:10] Delivering collection summon to 1AAE5935.
[2024-11-12 17:15:10] Collecting contents for 'ed-bridge' (78.32MB) from 1AAE5935.
[2024-11-12 17:15:32] Collecting contents digest for confirmation.
[2024-11-12 17:15:32] Contents integrity verified (Mean 3.52MB/s).
[2024-11-12 17:15:32] Collecting done after 22.57 seconds.
[2024-11-12 17:15:32] Exiting.
Prompt - Delivering - Progress
Prompt - Collecting - Progress
Server
Help
(venv) $ ed-server --help
Usage: ed-server [OPTIONS]
Configure the service particulars before starting it
Options:
-a, --addr TEXT Set the interface for the service endpoint
[default: 127.0.0.1]
-p, --port INTEGER RANGE Set the port value for the service endpoint
[default: 8080; 64<=x<=65535]
--version Show the version and exit.
--help Show this message and exit.
Broker
(venv) $ ed-server --addr 0.0.0.0 --port 8181
[2024-11-12 17:46:46] Expedite Server v0.1.0
[2024-11-12 17:46:46] Addr. 0.0.0.0
[2024-11-12 17:46:46] Port. 8181
[2024-11-12 17:46:46] server listening on 0.0.0.0:8181
[2024-11-12 17:48:30] connection open
[2024-11-12 17:48:30] 97939184 joined with the intention of collecting.
[2024-11-12 17:48:30] 97939184 is looking for ACE751B4 for 150 seconds.
[2024-11-12 17:48:51] connection open
[2024-11-12 17:48:51] DEA38DDF joined with the intention of delivering.
[2024-11-12 17:48:51] DEA38DDF is waiting for client for 150 seconds.
[2024-11-12 17:48:52] 97939184 left.
[2024-11-12 17:48:52] connection closed
[2024-11-12 17:49:00] connection open
[2024-11-12 17:49:00] 69988F01 joined with the intention of collecting.
[2024-11-12 17:49:00] 69988F01 is looking for DEA38DDF for 150 seconds.
[2024-11-12 17:49:00] 69988F01 and DEA38DDF are positively paired.
[2024-11-12 17:49:00] 69988F01 is attempting to fetch file contents from DEA38DDF.
[2024-11-12 17:49:03] DEA38DDF is delivering digest to 69988F01.
[2024-11-12 17:49:03] 69988F01 is delivering confirmation to DEA38DDF.
[2024-11-12 17:49:03] DEA38DDF left.
[2024-11-12 17:49:03] 69988F01 left.
[2024-11-12 17:49:03] connection closed
[2024-11-12 17:49:03] connection closed
[2024-11-12 17:49:11] connection open
[2024-11-12 17:49:11] 64595E02 joined with the intention of delivering.
[2024-11-12 17:49:11] 64595E02 is waiting for client for 150 seconds.
[2024-11-12 17:49:27] connection open
[2024-11-12 17:49:27] ABBBF4B1 joined with the intention of delivering.
[2024-11-12 17:49:27] ABBBF4B1 is looking for 64595E02 for 150 seconds.
[2024-11-12 17:49:27] ABBBF4B1 and 64595E02 are negatively paired.
[2024-11-12 17:49:27] ABBBF4B1 left.
[2024-11-12 17:49:27] connection closed
[2024-11-12 17:49:27] 64595E02 left.
[2024-11-12 17:49:27] connection closed
[2024-11-12 17:49:41] connection open
[2024-11-12 17:49:41] 58FEEF9C joined with the intention of delivering.
[2024-11-12 17:49:41] 58FEEF9C is looking for 64595E02 for 5 seconds.
[2024-11-12 17:49:46] 58FEEF9C has achieved expiry.
[2024-11-12 17:49:46] 58FEEF9C left.
[2024-11-12 17:49:46] connection closed
[2024-11-12 17:50:03] connection open
[2024-11-12 17:50:03] 58B8F046 joined with the intention of collecting.
[2024-11-12 17:50:03] 58B8F046 is looking for DEA38DDF for 5 seconds.
[2024-11-12 17:50:08] 58B8F046 has achieved expiry.
[2024-11-12 17:50:08] 58B8F046 left.
[2024-11-12 17:50:08] connection closed
...
Installation
For development
- Ensure that the required tools and dependencies are installed.
$ sudo dnf install python3 python3-virtualenv python3-pip git poetry
- Fork the repository and clone the project to your local storage.
$ git clone git@github.com:$(whoami)/expedite.git
- Make the project cloning location the present working directory.
$ cd expedite
- Create a virtual environment for installing project dependencies.
$ virtualenv venv
- Activate the newly created virtual environment before proceeding.
$ source venv/bin/activate
- Install the project codebase alongside the dependencies.
(venv) $ poetry install
For consumption
From PyPI
- Ensure that the required tools and dependencies are installed.
$ sudo dnf install python3 python3-virtualenv python3-pip
- Create a virtual environment for installing project dependencies.
$ virtualenv venv
- Activate the newly created virtual environment before proceeding.
$ source venv/bin/activate
- Install the project codebase from Python Package Index.
(venv) $ pip3 install expedite
From GitHub
Nightly
- Visit the GitHub Actions page of the project repository.
https://github.com/gridhead/expedite/actions
- To get automated builds for GNU/Linux distributions, visit the following page.
https://github.com/gridhead/expedite/actions/workflows/gnul.yml
- To get automated builds for Microsoft Windows, visit the following page.
https://github.com/gridhead/expedite/actions/workflows/mswn.yml
- Please request for the builds if they are unavailable in the recent workflow runs.
https://github.com/gridhead/expedite/issues
Stable
- Visit the GitHub Releases page of the project repository.
https://github.com/gridhead/expedite/releases
- Please file for bug reports and feature requests based on the stable releases.
https://github.com/gridhead/expedite/issues
Execution
Server
- Ensure that the previously created virtual environment is activated.
$ source venv/bin/activate
- Execute the following command to view the help topics of the project.
(venv) $ ed-server --help
Usage: ed-server [OPTIONS] Options: -a, --addr TEXT Set the interface for the service endpoint [default: 127.0.0.1] -p, --port INTEGER RANGE Set the port value for the service endpoint [default: 8080; 64<=x<=65535] --version Show the version and exit. --help Show this message and exit.
- Start the broker service using the following command.
(venv) $ ed-server --addr 0.0.0.0 --p 9090
- The broker service will run on IPv4 addressing (i.e.
0.0.0.0
) and on a specific port (i.e.9090
). - The broker service can be stopped by sending a keyboard interrupt (i.e.
Ctrl
+C
) when done.
- The broker service will run on IPv4 addressing (i.e.
- Note the IP address or the hostname for use by client connections.
ip a
Client
- Ensure that the previously created virtual environment is activated.
$ source venv/bin/activate
- Execute the following command to view the help topics of the project.
(venv) $ ed-server --help
Usage: ed-client [OPTIONS] COMMAND [ARGS]... Options: -h, --host TEXT Set the address for the service endpoint [required] -t, --time INTEGER RANGE Set the expiry period for participants [default: 15; 5<=x<=30] -e, --endo TEXT Set the identity of the opposing client --version Show the version and exit. --help Show this message and exit. Commands: recv Collect file through an encrypted transfer send Deliver file through an encrypted transfer
Delivering
- Execute the following command to view the help topics of the
SEND
subcommand.(venv) $ ed-client send --help
Usage: ed-client send [OPTIONS] Deliver file through an encrypted transfer Options: -p, --pswd TEXT Set the password for delivering encryption [default: 123972B4] -f, --file PATH Set the filepath for delivering to network [required] -s, --size INTEGER RANGE Set the unit size for file chunking (in B) [default: 262144; 1024<=x<=524288] --help Show this message and exit.
- If the delivering client is joining the network before the collecting client, execute the following command.
(venv) $ ed-client --host ws://localhost:9090 --time 30 send --file /path/to/file.extn --pswd expedite --size 131072
[2024-07-06 11:52:10] Expedite Client v0.1.0 [2024-07-06 11:52:10] Addr. ws://localhost:9090 [2024-07-06 11:52:10] Pass. expedite [2024-07-06 11:52:10] Plan. DELIVERING [2024-07-06 11:52:10] Wait. 30 seconds [2024-07-06 11:52:10] Please share your acquired identity to begin interaction. [2024-07-06 11:52:10] Attempting to connect to the network. [2024-07-06 11:52:10] Successfully connected to the network. [2024-07-06 11:52:10] You are now identified as 01276D06 in the network.
- The delivering client is attempting to connect to the broker service deployed at
ws://localhost:9090
. - The delivering client has an inactivity timeout for
30 seconds
beyond which it will automatically disconnect. - The delivering client has acquired the identity
01276D06
which can be used by the collecting client for discovery. - The delivering client is attempting to share the file named
file.extn
from the location/path/to/file.extn
. - The delivering client is using the password
expedite
to encrypt the file contents with 128-bit AES encryption. - The delivering client is going to process chunks of size
131072 byte
or128KiB
at a time for delivering. - The user of the delivering client must share their identity
01276D06
and password to start delivering process. - The delivering client will disconnect from the network if the collecting client opens the program in the wrong mode.
- The delivering client is attempting to connect to the broker service deployed at
- If the delivering client is joining the network after the collecting client, execute the following command.
(venv) $ ed-client --host ws://localhost:9090 --time 30 --endo DEADCAFE send --file /path/to/file.extn --pswd expedite --size 131072
[2024-07-06 12:02:09] Expedite Client v0.1.0 [2024-07-06 12:02:09] Addr. ws://localhost:9090 [2024-07-06 12:02:09] Pass. expedite [2024-07-06 12:02:09] Plan. DELIVERING [2024-07-06 12:02:09] Wait. 30 seconds [2024-07-06 12:02:09] Please wait for DEADCAFE to begin interaction. [2024-07-06 12:02:09] Attempting to connect to the network. [2024-07-06 12:02:09] Successfully connected to the network. [2024-07-06 12:02:09] You are now identified as BA40BB0F in the network.
- The delivering client is attempting to connect to the broker service deployed at
ws://localhost:9090
. - The delivering client has an inactivity timeout for
30 seconds
beyond which it will automatically disconnect. - The delivering client has acquired the identity
BA40BB0F
which can be used by the collecting client for discovery. - The delivering client is attempting to share the file named
file.extn
from the location/path/to/file.extn
. - The delivering client is using the password
expedite
to encrypt the file contents with 128-bit AES encryption. - The delivering client is going to process chunks of size
131072 byte
or128KiB
at a time for delivering. - The user of the delivering client expects the collecting client with the identity
DEADCAFE
to start interaction. - The delivering client will disconnect from the network if the collecting client opens the program in the wrong mode.
- The delivering client is attempting to connect to the broker service deployed at
- If the average latency from the delivering client to the broker service is below 100ms, consider increasing the chunking size to improve the stability of the delivering process.
- If the average latency from the delivering client to the broker service is above 100ms, consider decreasing the chunking size to improve the performance of the delivering process.
- Let the delivering process complete or if needed, abort an ongoing delivering process by sending a keyboard interrupt (i.e.
Ctrl
+C
).
Collecting
- Execute the following command to view the help topics of the
RECV
subcommand.Usage: ed-client recv [OPTIONS] Collect file through an encrypted transfer Options: -p, --pswd TEXT Set the password for collecting encryption [required] --help Show this message and exit.
- If the collecting client is joining the network before the delivering client, execute the following command.
(venv) $ ed-client --host ws://localhost:8080 --time 30 recv --pswd expedite
[2024-07-06 12:57:43] Expedite Client v0.1.0 [2024-07-06 12:57:43] Addr. ws://localhost:8080 [2024-07-06 12:57:43] Pass. expedite [2024-07-06 12:57:43] Plan. COLLECTING [2024-07-06 12:57:43] Wait. 30 seconds [2024-07-06 12:57:43] Please share your acquired identity to begin interaction. [2024-07-06 12:57:43] Attempting to connect to the network. [2024-07-06 12:57:43] Successfully connected to the network. [2024-07-06 12:57:43] You are now identified as 13755346 in the network.
- The collecting client is attempting to connect to the broker service deployed at
ws://localhost:9090
. - The collecting client has an inactivity timeout for
30 seconds
beyond which it will automatically disconnect. - The collecting client has acquired the identity
13755346
which can be used by the delivering client for discovery. - The collecting client is using the password
expedite
to decrypt the file contents with 128-bit AES encryption. - The user of the collecting client must share their identity
13755346
and password to start collecting process. - The collecting client will disconnect from the network if the delivering client opens the program in the wrong mode.
- The collecting client is attempting to connect to the broker service deployed at
- If the collecting client is joining the network after the delivering client, execute the following command.
(venv) $ ed-client --host ws://localhost:8080 --time 30 --endo DEADCAFE recv --pswd expedite
[2024-07-06 12:55:30] Expedite Client v0.1.0 [2024-07-06 12:55:30] Addr. ws://localhost:8080 [2024-07-06 12:55:30] Pass. expedite [2024-07-06 12:55:30] Plan. COLLECTING [2024-07-06 12:55:30] Wait. 30 seconds [2024-07-06 12:55:30] Please wait for DEADCAFE to begin interaction. [2024-07-06 12:55:30] Attempting to connect to the network. [2024-07-06 12:55:30] Successfully connected to the network. [2024-07-06 12:55:30] You are now identified as 13AA7DB2 in the network.
- The collecting client is attempting to connect to the broker service deployed at
ws://localhost:9090
. - The collecting client has an inactivity timeout for
30 seconds
beyond which it will automatically disconnect. - The collecting client has acquired the identity
13AA7DB2
which can be used by the delivering client for discovery. - The collecting client is using the password
expedite
to decrypt the file contents with 128-bit AES encryption. - The user of the collecting client must share their identity
13AA7DB2
and password to start collecting process. - The collecting client will disconnect from the network if the delivering client opens the program in the wrong mode.
- The collecting client is attempting to connect to the broker service deployed at
- Let the collecting process complete or if needed, abort an ongoing collecting process by sending a keyboard interrupt (i.e.
Ctrl
+C
).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file expedite-0.1.0.tar.gz
.
File metadata
- Download URL: expedite-0.1.0.tar.gz
- Upload date:
- Size: 523.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df90be5f057e963d7fd2fda9b438734407336b46d322b6386c0188cc3f418e79 |
|
MD5 | f77adace1880638de439dca2b2c5f4c2 |
|
BLAKE2b-256 | b2dc30122a5be523dafe7aac10e555a551bdc2afb362b36daa7a26d884d89acc |
Provenance
File details
Details for the file expedite-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: expedite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 568.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47d4f09287a0e57890143a1efd86252a968616f922cd21ff5559146b8323e56 |
|
MD5 | d0c60af524b88aae3cb7cb05c4e49552 |
|
BLAKE2b-256 | 21dde7e7875ae1640a2b67c2f39e89b8c99be54c5bfd027fb0c81807b8c01350 |