Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Two Locks Are Exponentially Better Than One

2FA makes attacks millions of times harder.

With just a password (say 10⁸ possibilities), an attacker has a 1-in-100-million shot. Add a 6-digit TOTP code (10⁶ possibilities) and the combined space becomes 10¹⁴.

Combined Key Space

The two factors are independent, so their spaces multiply. Even if someone steals your password, they still need the TOTP code that changes every 30 seconds.

Combined space=Password space×TOTP space\text{Combined space} = \text{Password space} \times \text{TOTP space}

10⁸ passwords × 10⁶ TOTP codes

  1. 1

    Combined

    108×106=101410^8 \times 10^6 = 10^{14}
  2. 2

    Improvement

    1014108=106\frac{10^{14}}{10^8} = 10^6
Answer

1 million times harder to crack than password alone

The takeaway

Two independent factors multiply the attack difficulty. That’s why 2FA is so effective.

Back to all stories