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 password uses small letters, capital letters and digits: 62 characters in all…
MediumComputer ScienceHigh School (9–10)Computer Science › Encryption and Cyber SecurityNumericalIGCSE

A password uses small letters, capital letters and digits: 62 characters in all…

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 password uses small letters, capital letters and digits: 626262 characters in all. An attacker's computer tries 101010^{10}1010 passwords each second.

  1. How many hours does it take to try every password of length 888? Give one decimal place.
  1. How many years does it take for every password of length 121212? Use 111 year =31 536 000= 31\,536\,000=31536000 seconds, and give the nearest whole number of years.
  1. Explain why adding four characters makes such a big difference.

Check your answer

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

Need a reminder? The key ideaShowHide

Brute-force attack: a program tries every possible password until one works, to get into an account. With ccc characters to choose from and a length of LLL, there are

N=cL\displaystyle N = c^{L}N=cL

passwords. Data interception: data is captured while it is transmitted, to steal it. DDoS: many computers flood a web server with requests so real users cannot reach it. Hacking: gaining unauthorised access to a system, to steal, change or delete data or cause damage.

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. Length 888. N=628≈2.18×1014N = 62^{8} \approx 2.18 \times 10^{14}N=628≈2.18×1014. Time: 2.18×1014÷1010≈21 8342.18 \times 10^{14} \div 10^{10} \approx 21\,8342.18×1014÷1010≈21834 seconds. In hours: 21 834÷3600=6.121\,834 \div 3600 = 6.121834÷3600=6.1 hours.

Step 2. Length 121212. N=6212≈3.23×1021N = 62^{12} \approx 3.23 \times 10^{21}N=6212≈3.23×1021. Time: 3.23×10113.23 \times 10^{11}3.23×1011 seconds. In years: 3.23×1011÷31 536 000≈102303.23 \times 10^{11} \div 31\,536\,000 \approx 102303.23×1011÷31536000≈10230 years.

Step 3. Why. Each extra character multiplies the number of passwords by 626262. Four extra characters multiply it by 62462^4624, which is almost 151515 million.

Answer: (a) 6.16.16.1 hours. (b) about 102301023010230 years. (c) The number of passwords grows by a factor of 626262 for every character added.

Check. 6.16.16.1 hours times 624≈1.48×10762^4 \approx 1.48 \times 10^7624≈1.48×107 gives about 9.0×1079.0 \times 10^79.0×107 hours, which is about 10 00010\,00010000 years. It agrees.

Log in to save this for later
← All Problems
← A door lock opens with a 4-digit PIN. Each digit can be 0 to 9…An online ticket shop opens its sales for a popular concert at 10:00… →
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. A bank uses two-step verification. After the password, it sends a 6-digit code to the customer's…Medium
  4. At a small company, a caller rings the reception desk…Hard
  5. Two things happen to two customers of the same bank…Medium
All problems on this topic →