First of all make sure that your have Python 3, pip and virtualenv installed.
Onde you have all those installed clone the project and go to the directory
$ git clone [email protected]:bahackers/gpg-group-chat.git
$ cd gpg-group-chat
After that we recommend create a virtualenv to install the app dependencies
$ virtualenv -p python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python setup.py develop
We are using PyTest, if you follow the setting up steps run the command
$ py.test ./test
$ gpg-group-chat --server
$ gpg-group-chat --client
- Server starts with gpg-group-chat --server at 192.168.0.1
- The client1 starts with gpg-group-chat --client --server-ip=192.168.0.1 --public-key=public-key1
- The client1 connect to the server and the it stores the public key for client1
- The server send the current list of keys for client1 (contains public key1)
- The client2 starts with gpg-group-chat --client --server-ip=192.168.0.1 --public-key=public-key2
- The client2 connect to the server and the it stores the public key for client2
- The server send the current list of keys for client1 and client2 (contains public key1 and public key2)
- The client3 starts with gpg-group-chat --client --server-ip=192.168.0.1 --public-key=public-key3
- The client3 connect to the server and the it stores the public key for client3
- The server send the current list of keys for client1, client2 and client3 (contains public key1, public key2 and public key3)
- The client2 disconnects from the server
- the server delete the public key from client 2 from the storage
- The server send the current list of keys for client1 and client3 (contains public key1 and public key3) ...