HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A bank uses two-step verification. After the password, it sends a 6-digit code to the customer's…
MediumComputer ScienceHigh School (9–10)Computer Science › Encryption and Cyber SecurityNumericalIGCSE

A bank uses two-step verification. After the password, it sends a 6-digit code to the customer's…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A bank uses two-step verification. After the password, it sends a 666-digit code to the customer's phone. The account locks after 555 wrong tries.

  1. How many different codes are there?
  1. An attacker has stolen the password but not the phone. The chance that guessing gets in is one in how many?
  1. Explain why two-step verification protects an account even when the password has been stolen by phishing.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Access levels limit what each user may do. Authentication: username and password, biometrics, two-step verification. Anti-malware scans for and removes malware. Automatic updates fix weaknesses. A firewall monitors traffic and blocks what breaks its rules. A proxy server stands between the user and the internet. SSL encrypts data between browser and server. Users check spelling, tone and URLs and set privacy settings. A code of ddd digits with kkk tries gives a chance of one in

n=10dk.\displaystyle n = \dfrac{10^{d}}{k}.n=k10d​.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The codes. 106=1 000 00010^{6} = 1\,000\,000106=1000000.

Step 2. The chance. With 555 tries, the attacker gets 555 codes out of a million: one in 1 000 000÷5=200 0001\,000\,000 \div 5 = 200\,0001000000÷5=200000.

Step 3. Why it protects. The password alone is not enough to log in. The second step needs the code, which is sent to the customer's phone. The attacker does not have the phone, so a stolen password is not enough.

Answer: (a) 1 000 0001\,000\,0001000000 codes. (b) one in 200000200000200000. (c) The attacker would also need the code from the customer's phone.

Log in to save this for later
← All Problems
← At a small company, a caller rings the reception desk…A school connects its network to the internet through a firewall… →
More onComputer Science › Encryption and Cyber Security

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A small office has 6 staff. They share files on a server, use email, and log in to an online bank…Hard
  2. A school connects its network to the internet through a firewall…Medium
  3. At a small company, a caller rings the reception desk…Hard
  4. Two things happen to two customers of the same bank…Medium
  5. A worm reaches one computer on a network of 2000 computers…Medium
All problems on this topic →