AiTeky Original Interactive Learning & Practice Intermediate
Cryptography: guessable tokens, real randomness and the reset link built from the clock
Count how many tokens an attacker would have to try for different lengths, see why a hash of the clock looks random but is not, and replace a predictable password-reset link with a secure random one.
Many systems rely on a secret token: a reset link, an API key, a session id. Its strength is the number of values an attacker would have to try. A token that looks random but is built from something guessable, like the time, is only as strong as that guessable part.
This course counts possibilities and shows the clock-token mistake with small Python programs you can run in your browser. Python stands in for the server: the code demonstrates the defence, not an attack on any real system. Check your language's documentation for its secure random generator, and never write your own. All values are made up.
- Learn lessons explain one idea at a time and let you run it.
- Industry ready lessons decide and justify, and end with interview questions.
No cryptography experience is assumed. Basic Python helps.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 20 min Free sample 🔒 AiTeky Pass How many values are there Count the possible values of PINs, codes and tokens of different lengths, and see how the time to try them all grows from seconds to longer than the age of the universe.
- 02 20 min 🔒 AiTeky Pass Looks random is not random See why the hash of a timestamp looks random yet can be found from a short list of times, and how a token from the system's secure generator has no such list.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.

