CodeCAPTCHA

CodeCAPTCHA

6 devlogs
32h 53m
•  Ship certified

A very non-practical CAPTCHA system that require user code to solve the CAPTCHA? That just insane.
This is a group project for the codejam #12 in Python Discord server (group name: peppy poppies) for the theme "Wrong tool for the job" (proposed and voted by every participant in the codejam) and "Python in Browser"(selected by the hoster).
Sidenote: I know the group name is weird but we are randomly allocated and don't have the option to pick the group name.

Timeline

Ship 1

1 payout of shell 305.0 shells

i-am-unknown-81514525

about 1 month ago

i-am-unknown-81514525 Covers 6 devlogs and 32h 53m

The cj is finally ended(including documentation period)
Basically adding some easter egg for SoM that isn't included in the codejam (which 1/10 chance you would see a ultra long question that no human can solve practically) and writing the README.
For disclosure purpose for the project(before shipping), as far as I aware, a small amount of question_set.json (consequently hard_set.json as it is copied from question_set.json then added modification), the entire styles.css in demo frontend and some amount of index.html in demo frontend is fully/partially AI generated. This doesn't consist of 30% of the project.

Update attachment

Basically completed(for the coding side) as the end of coding portion of the codejam
Done some modification of the UI
Add a logout system and the website now remember you have login
The question is now in image so you cannot automatically solve them as easily
Here a fun 100 step question that exist only for fun and no practical reason, that AI failed to solve:

Update attachment
  • Created a large question set (to generate virtually infinite question)
  • Add execution timeout and execution handling (prevent some question cause issue) (btw a small easter egg there that I don't know if it would trigger now)
  • Fix CAPTCHA UI compatibility for mobile interface
Update attachment

A little bit lazy to create a seperate version of devlog to the PR description so here you go:
Add Dockerfile config and docker compose
Add environment variable
Add a build system to generate correct set of domain
Rewrite /frontend/demo/* to use CAPTCHA system correctly
Update captcha_handler.py to support micropython (not fully verified)
Add captcha_handler.js if even faster loading is necessary

Update attachment

Finally completed the CAPTCHA ui where the user write code!! (Done a bunch of debugging)

Update attachment

Added cryptohraphy folder to output JWT token, and added a pyscript to handle the redirection to the CAPTCHA page. (<- this is my work)
My other teammate is working on the frontend and backend of the system for now.

Update attachment