Cyber security · GCSE · OCR J277 1.4.2, AQA 8525 3.6.3, Edexcel 1CP2 6.4.4 · about 15 min
Ways to authenticate, strong passwords, 2FA, CAPTCHA and hashing.
[1 mark]Which makes a password stronger?
[1 mark]What is two-factor authentication?
[1 mark]What is a CAPTCHA for?
[1 mark]Why should passwords be stored as a hash, not plain text?
[1 mark]Why do systems lock you out after a few wrong tries?
Write strength(password) scoring one point for each rule met: at least 8 characters; a lower-case letter; an upper-case letter; a digit; a symbol (a character that is not a letter or digit). For each password in passwords, print <password>: <score>/5 <verdict>, where the verdict is weak for 0 to 2, ok for 3, and strong for 4 or 5. At the end print strong passwords: <n>.
# the two lines every program starts with: the commands, then the robot from bugbot import * connect() passwords = ["robot", "Sunshine", "Bugbot42", "x9$Lq2!vT", "12345678"]
Plan your program here, then type it in and press Run.
26 ** 6.