MarzleyTech Learn

Home / Learn / Digital literacy & online safety / Passwords and two-step verification: protecting your accounts properly

Passwords and two-step verification: protecting your accounts properly

Your email, M-Pesa, bank, social media, school portal and eCitizen accounts hold your money, identity and reputation. Most account takeovers happen because of weak, reused or stolen passwords, or because someone tricked the owner into giving away a code. This unit teaches how attackers get passwords, how to create strong ones you can remember, how password managers work, and how two-step verification (2FA) stops most attacks even when a password leaks.

How passwords get stolen

MethodHow it works
GuessingTrying common passwords (123456, password, qwerty), names, birthdays, phone numbers, football teams
Brute forceComputers try millions of combinations; short passwords fall quickly
Data breachesA website you used gets hacked; leaked emails and passwords are sold and tried on other sites
Credential stuffingUsing leaked passwords from one site to log into others (works when you reuse passwords)
PhishingFake login pages or messages trick you into typing your password or code
Shoulder surfingSomeone watches you type (cyber cafés, M-Pesa agents, ATMs)
Malware/keyloggersInfected computers record what you type
Social engineeringSomeone pretends to be customer care or IT support and asks for your PIN or code

What makes a password strong?

Length is the most important factor. Each extra character multiplies the number of combinations an attacker must try.

PasswordStrength
wanjiku1990Weak: a name and year, easy to guess
P@ssw0rd!Weak: a common pattern despite symbols
Kq7#mWeak: too short
mango-river-bicycle-47Strong: long and random words
TeaAtSixWithMamaInNyeri!Strong: long and memorable for you

A strong password is:

  • Long: at least 12–16 characters (longer for email and banking).
  • Unique: never used on another site.
  • Unpredictable: not your name, birthday, ID number, phone number, child's name or common words like "password".

Passphrases

A passphrase is several random words joined together: easy to remember, hard to crack.

  • kettle-sunset-matatu-planet
  • Blue!Goat!Dances!Kisumu9

Make one by picking 4 or more unrelated words (avoid famous quotes or song lyrics), and add a number or symbol if the site requires it.

Never reuse passwords

If you use the same password everywhere and one site is breached (this happens to big companies), criminals try that email and password on Gmail, Facebook, banking apps and more. One leak becomes a disaster.

Check whether your email appears in known breaches at haveibeenpwned.com; if it does, change passwords for affected accounts (and anywhere you reused them).

Password managers

How can you remember 50 unique passwords? You don't: use a password manager, an app that stores your passwords securely (encrypted) and fills them in for you. You remember one strong master password.

OptionNotes
Google Password Manager (Chrome/Android)Built in; syncs with your Google account; can warn about leaked or reused passwords
iCloud Keychain (Apple)Built into iPhone/Mac
BitwardenFree, open source, works on all devices
Others (1Password, etc.)Paid options with extra features

Benefits: unique strong passwords everywhere, auto-fill only on the correct website (which helps protect against fake phishing sites), alerts for breached passwords.

Protect the password manager with a strong master password and 2FA. Don't save passwords in browsers on shared computers.

Two-step verification (2FA)

Two-step verification (also called two-factor authentication, 2FA, or multi-factor authentication, MFA) requires something extra besides your password, so a stolen password alone isn't enough.

Factor typeExamples
Something you knowPassword, PIN
Something you havePhone (SMS code or app), security key
Something you areFingerprint, face

Types of second steps

MethodSecurityNotes
SMS codeGood (much better than nothing)Vulnerable to SIM swap fraud and phishing
Authenticator app (Google Authenticator, Microsoft Authenticator, Authy)BetterCodes change every 30 seconds and are generated on your phone
Push prompt ("Is it you trying to sign in?")GoodNever approve a prompt you didn't start
PasskeysBest for many sitesSign in with your phone's fingerprint/face/PIN; resistant to phishing; supported by Google, Microsoft, Apple and more
Security keys (USB/NFC)Very strongFor high-risk accounts

Turn on 2FA now (most important accounts first)

  1. Email (Gmail: myaccount.google.com → Security → 2-Step Verification) because email resets every other account.
  2. WhatsApp: Settings → Account → Two-step verification → set a 6-digit PIN (stops hijacking when someone gets your SMS code).
  3. Facebook/Instagram/TikTok: Settings → Security → Two-factor authentication.
  4. Banking apps and M-Pesa app: use app PINs/biometrics.
  5. Microsoft account, iCloud, LinkedIn, Upwork/Fiverr, freelance platforms.

Save backup codes (printed or in a safe place) in case you lose your phone.

Think about it: Someone calls claiming to be from Safaricom, says your line will be blocked, and asks you to read out the code you just received by SMS. What's happening?Show answer

It's a scam. The code is likely a login or password-reset code for one of your accounts (WhatsApp, M-Pesa app, email) that the scammer triggered. Reading it out gives them access. Hang up, never share codes, and call the official customer care number yourself if you're worried.

Protect the master keys: phone, SIM and email

  • Phone lock: use a PIN, pattern (not simple shapes), fingerprint or face unlock; set the screen to lock quickly.
  • SIM PIN: a SIM lock PIN stops someone using your SIM in another phone.
  • SIM swap fraud: criminals convince or bribe someone to move your number to their SIM, then receive your SMS codes. Warning sign: your phone suddenly shows "No service/SIM not registered" in an area with network. Contact your provider immediately from another phone.
  • Email: strong unique password + 2FA + up-to-date recovery phone and email.
  • Find My Device (Android) / Find My (iPhone) to locate, lock or erase a lost phone.

If an account is hacked

  1. Try to recover it through the official "Forgot password" / account recovery page.
  2. Change the password (and anywhere you reused it), then turn on 2FA.
  3. Log out other sessions (most services show active devices: sign them out).
  4. Check recovery details (phone, email) and remove unknown ones; check email forwarding rules.
  5. Warn your contacts that messages from your account may be scams.
  6. For money accounts (M-Pesa, bank), call the provider immediately to block transactions.
  7. Report serious cases to the police/DCI cybercrime unit, and to the platform.
  8. Scan your devices for malware.

Common mistakes

MistakeFix
One password for everythingUnique passwords + a password manager
Birthdays, names, phone numbersRandom passphrases
Writing passwords on a sticky note on the screenPassword manager (or a secure place at home)
Sharing PINs and OTPsNever share them with anyone
No 2FA on email and WhatsAppTurn it on today
Approving login prompts you didn't startDeny and change your password
Saving passwords on shared computersUse private windows; never "remember"

Practice tasks

  1. Create three passphrases using 4 random words each.
  2. Check your email at haveibeenpwned.com.
  3. Turn on 2-Step Verification for your email and two-step verification for WhatsApp.
  4. Install or open a password manager and save your 5 most important accounts with unique passwords.
  5. Set a SIM PIN and a strong phone lock, and test Find My Device.

Summary

  • Passwords are stolen by guessing, breaches, credential stuffing, phishing, shoulder surfing and malware.
  • Strong passwords are long, unique and unpredictable; passphrases make this easy.
  • Never reuse passwords; use a password manager.
  • Turn on two-step verification everywhere, especially email and WhatsApp; prefer authenticator apps or passkeys; keep backup codes.
  • Never share PINs or OTP codes; protect your phone, SIM (beware SIM swaps) and email.
  • If hacked: recover, change passwords, enable 2FA, sign out other devices, warn contacts and call financial providers.

Check yourself

  1. What is the most important factor in password strength?

    Show answer

    length

  2. Should you use the same password on several sites? (yes or no)

    Show answer

    no

  3. What does 2FA stand for? Write the full words.

    Show answer

    two-factor authentication

  4. Which account should get 2FA first because it can reset other accounts?

    Show answer

    email

  5. Should you share an OTP code with "Safaricom customer care" on the phone? (yes or no)

    Show answer

    no

  6. What fraud moves your phone number to a criminal's SIM? (two words)

    Show answer

    SIM swap

  7. Which website checks whether your email appeared in a data breach?

    Show answer

    haveibeenpwned.com

Lesson 3 of 8 in Digital literacy & online safety · Written by · Course notes