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.

31 lines
1.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # Shape Game
  2. ## Setup
  3. * Use 3 linux computers connecting in a lan
  4. * Clone the repo `git clone <repo url>`
  5. * Install `sh install.sh` (this will work only with aptitude )
  6. * Compile `make`
  7. * Start server `./bin/server.out 4444`
  8. * Get server ip `ifconfig`
  9. * Take note of `eth0` or `enp2s0`; **note::** the numbers might be different
  10. * Start a client
  11. * Alice `./bin/server.out 1 4444 <server ip>`
  12. * Bob `./bin/server.out 2 4444 <server ip>`
  13. * Eve `./bin/server.out 3 4444 <server ip>`
  14. ## How to run
  15. 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.
  16. ### Encryption
  17. 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
  18. ## Example
  19. ### Server
  20. ![pics/server.png](pics/server.png)
  21. ### Client
  22. Starting
  23. ![pics/start.png](pics/start.png)
  24. Clients select shape before send
  25. ![pics/select_shape.png](pics/select_shape.png)
  26. Alice send message to Bob non-encrypted while bob used encryption. Take note that Eve can only read Alice's message.
  27. ![pics/send.png](pics/send.png)