You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
beta 12d61f4538 update read me 5 years ago
.vscode working tcp comm 5 years ago
includes readme 5 years ago
pics update read me 5 years ago
source readme 5 years ago
.gitignore working ui 5 years ago
LICENSE.md LICENSE MIT 5 years ago
Readme.md update read me 5 years ago
install.sh update install 5 years ago
makefile update networking 5 years ago
run.sh working 5 years ago
thanks.md readme 5 years ago

Readme.md

Shape Game

Setup

  • Use 3 linux computers connecting in a lan

  • Clone the repo git clone <repo url>

  • Install sh install.sh (this will work only with aptitude )

  • Compile make

  • Start server ./bin/server.out 4444

  • Get server ip ifconfig

    • Take note of eth0 or enp2s0; note:: the numbers might be different
  • Start a client

    • Alice ./bin/server.out 1 4444 <server ip>
    • Bob ./bin/server.out 2 4444 <server ip>
    • Eve ./bin/server.out 3 4444 <server ip>

How to run

Using the up, down, left, right arrow keys to change shape. space bar will send the message openly, which will demo the unsecured connection. enter \ return will demo the encrypted message.

Encryption

encryption is done by mapping shapes to fruit. As Eve only knows what shapes are Alice and Bob and use their fruit code to translate shapes to fruit and vise versa

Example

Server

pics/server.png

Client

Starting pics/start.png Clients select shape before send pics/select_shape.png Alice send message to Bob non-encrypted while bob used encryption. Take note that Eve can only read Alice's message. pics/send.png