$ ./guess_the_languageCybersecurity
Cybersecurity · medium · #204

Why compare secrets in constant time?

  1. Timing leaks the prefix
  2. Comparison may overflow
  3. Encoding can differ
  4. Lengths may not match
An early-exit compare reveals how many leading bytes matched, one byte at a time.
Play Cybersecurity ▸