Skip to content

Secure Multi-Party Computation word-guessing game

Notifications You must be signed in to change notification settings

sine-fdn/encryptle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Encryptle

SINE Logo

Secure Multi-Party Computation word-guessing game

Description

A version of New York Times' popular game Wordle, using SINE's Tandem engine.

Play here!

Concept

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.

Technologies

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.

Build and run

Server

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

Client

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

Contributions

All contributions and suggestions are welcomed! Please open issues for that effect.