One-time activation code system built with Flask. Codes are teacher-issued, single-use, and expire after 10 minutes.
- One-time tokens — each code can be redeemed exactly once
- Time-based expiry — codes automatically rejected after 10 minutes
- Replay-attack prevention — used, shared or leaked codes become useless
This prevents students from starting exams without explicit teacher approval.
Python · Flask · Jinja templates
pip install -r requirements.txt
python app.pyThe app runs on port 5004 by default.
- Teacher generates an activation code for a student.
- Student submits the code to start the exam.
- The server validates the code (unused + unexpired) and burns it on first use.
- Any reuse, sharing or late submission is rejected.
MIT