Secure Multi-Party Computation word-guessing game
A version of New York Times' popular game Wordle, using SINE's Tandem engine.
In the original Wordle game the player's guesses are compared to the secret word. Hence, although the latter is kept secret, the former are shared with the server. Encryptle uses Secure Multi-Party Computation, keeping both the secret word and the player's guesses private.
This project was developed to serve as a demo for SINE's Tandem engine.
This repository contains a backend server (henceforth, 'the server') and a frontend server (henceforth 'the client').
The server is powered by rocket.rs
and implements SINE's tandem engine, which runs Garble programs.
The client adapts this repository, which uses (mainly) React and Typescript.
You can start the server by running the following commands:
$ cd server
$ cargo install --path .
$ encryptle
Alternatively, you can build and run a Docker container with the server using the following commands:
$ cd server
$ docker build -t encryptle-server -f Dockerfile .
$ docker run -p 8000:8000 --name encryptle-server
Build and run a Docker container with the client for development using the following commands:
$ cd client
$ docker build -t encryptle-client:dev .
$ docker run -p 3000:3000 --name encryptle-client-dev encryptle-client:dev
Open http://localhost:3000 and play!
Build and run a Docker container with the client for production using the following commands:
$ cd client
$ docker build --target=prod -t encryptle-client:prod .
$ docker run -p 80:8080 --name encryptle-client-prod encryptle-client:prod
All contributions and suggestions are welcomed! Please open issues for that effect.