Giter Club home page Giter Club logo

poc-no-crack-wordle's Introduction

Proof-of-Concept Wordle

This is a proof of concept that Wordle can be implemented in such a way that only a brute-force dictionary attack is possible with minimal work from the server.

I am hosting a running example on my website which generates a new word every hour.

For more information on the concepts behind it, read my blog post A harder-to-crack Wordle

The code is split in two folders:

  • The server/ folder contains the files needed to be executed on the server. The python script will read the dict.txt file, so it's essential that they remain together in the same folder. oreover the script produces a data.bin file which is a binary encoding of the generated table. The python script is documented, so read the comments.

  • The client/ folder contains the files that should be exposed in the web server.

To encourage attempts at breaking the game, without use of brute-force dictionary attacks, no code is obfuscated or made ugly. And only the minimum number of features are implemented.

The client logic is in 177 lines of vanilla Javascript, and the server logic is in 146 lines of documented Python3 code.

Deployment

There's a handy setup.sh executable with two environment variables APP_PATH, and PYTHON3. You should assign to APP_PATH the full path of the cloned repository, and to PYTHON3 the full path of the python3 executable.

If you choose to scatter the server and client folders you will need to adapt the script.

There will be logs written to server/server.log that is just the output of the generation script.

Crontab

I use the following cron expression:

0 */1 * * * /path/to/app/setup.sh

License

This code is licensed under GPLv3.

poc-no-crack-wordle's People

Contributors

geezee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.