Skip to content

About

One-time activation code system (Flask) — time-based tokens that expire in 10 minutes and prevent replay attacks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Activation Code Security

One-time activation code system built with Flask. Codes are teacher-issued, single-use, and expire after 10 minutes.

Security model

  • 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.

Tech stack

Python · Flask · Jinja templates

Getting started

pip install -r requirements.txt
python app.py

The app runs on port 5004 by default.

How it works

  1. Teacher generates an activation code for a student.
  2. Student submits the code to start the exam.
  3. The server validates the code (unused + unexpired) and burns it on first use.
  4. Any reuse, sharing or late submission is rejected.

License

MIT

About

One-time activation code system (Flask) — time-based tokens that expire in 10 minutes and prevent replay attacks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages