Skip to content
← Cryptography you can rely on

Lesson 4 of 4 · 8 min

Keys and passwords: why losing one breaks everything

Every guarantee in this course rests on a key or a password staying secret. Key management is the unglamorous discipline that makes or breaks cryptography.

Every lesson in this course has quietly depended on the same assumption: the right key stayed with the right person. Symmetric encryption fails the moment its shared key leaks. Asymmetric encryption fails if a private key is exposed. A signature means nothing once its private key is stolen — an attacker can now sign anything and it will verify as genuine. The NCAE-C Basic Cryptography knowledge unit lists key management, alongside the algorithms themselves, as an issue that “must be addressed before implementation” — not an afterthought.

Why a strong algorithm does not save a weak key

AES with a 256-bit key is, for practical purposes, unbreakable by guessing. None of that matters if the key itself is written on a sticky note, reused across accounts, or protected by a four-digit code an attacker can try in seconds. Most real-world cryptographic failures are not broken algorithms; they are exposed keys, reused passwords, or secrets left in plain text where they should have been protected. This is why the previous lessons’ guarantees always came with a condition attached — “if the shared key stays secret”, “only the holder of the private key” — that condition is where key management lives.

What current password guidance actually says

NIST’s current digital identity guidelines (SP 800-63B) reverse much of the advice many people were taught. Verifiers, it says, “SHALL NOT require subscribers to change passwords periodically” and should not impose composition rules forcing mixes of character types — both practices that pushed people toward small, predictable variations rather than genuinely stronger passwords. Instead, NIST recommends longer passwords (its guidance points toward a minimum in the range of eight to fifteen characters depending on context, with a maximum of at least 64 allowed) and checking new passwords against lists of commonly breached or expected passwords rather than demanding artificial complexity. It also explicitly requires that verifiers “allow the use of password managers and autofill functionality”, including permitting paste into password fields — recognising that a tool generating and storing unique, long passwords per site does more for security than any rule a person can be expected to follow by memory.

Passkeys: removing the shared secret entirely

A password is a shared secret: both you and the service know it, which is exactly what makes it phishable — a fake login page just asks for the same secret. A passkey avoids this by using the asymmetric encryption from earlier in this course. Apple’s support documentation describes the process: your device generates “a unique cryptographic key pair” when you create a passkey — a public key that goes to the service, and a private key that never leaves your device. Apple states passkeys are resistant to phishing because there is no shared secret to trick you into typing: the private key simply cannot be extracted by a fake website, no matter how convincing it looks. On Apple devices, the private key is protected and synced across your own devices through iCloud Keychain, which Apple describes as end-to-end encrypted so that Apple itself does not hold the key.

CISA’s hierarchy of factors, in short

Guidance from the US Cybersecurity and Infrastructure Security Agency on multi-factor authentication ranks methods by resistance to phishing. It states that “the only widely available phishing-resistant authentication is FIDO/WebAuthn authentication” — the same underlying standard passkeys are built on. A one-time code sent by text message is, in its words, still much better than no second factor at all, but it can be relayed or intercepted in ways a phishing-resistant method cannot. Where a service offers a passkey or a FIDO security key, it is currently the strongest widely available option; where it only offers app-based codes or SMS, either is still meaningfully better than a password alone.

If this is lost or exposedThe consequence
A symmetric encryption keyAnyone who has it can read everything it protected, past and future, unless the system has forward secrecy
A private key used for signingAn attacker can produce signatures that verify as genuinely yours
A reused passwordEvery account using that same password becomes vulnerable the moment any one of them is breached
A passkey’s private key (rare, since it is not meant to leave the device)The device itself, and its own protections (screen lock, disk encryption), become the last line of defence

A practical takeaway

Use a password manager, so every account gets a long, unique password you never have to remember. Turn on the strongest available second factor — a passkey or a physical security key where offered, an authenticator app otherwise. And treat any moment a password or key was possibly exposed — a phishing click, a lost device, a breach notice — as something to act on immediately, not later: change the credential, and check whether it was reused anywhere else.

Key takeaways

  • Every cryptographic guarantee in this course depends on a key or password staying secret; key management is not optional.
  • NIST’s current guidance drops forced periodic password changes and complexity rules in favour of length, breach-list checks, and password managers.
  • Passkeys remove the shared secret a password relies on, using a private key that never leaves your device — which is why they resist phishing.
  • CISA ranks FIDO/WebAuthn (the standard behind passkeys) as the most phishing-resistant widely available authentication method.
  • Treat any possible exposure of a password or key — phishing, a lost device, a breach notice — as something to act on immediately.

Check yourself

  1. 1. Why does a strong encryption algorithm not guarantee security on its own?

    • Strong algorithms are always slow
    • The guarantee only holds if the key stays secret; an exposed key defeats even the strongest algorithm — Right.
    • Algorithms need to be changed every month
    • Only symmetric algorithms can be broken

    Cryptographic strength is conditional on key secrecy; a leaked or weak key undermines even a mathematically sound algorithm.

  2. 2. What does current NIST guidance (SP 800-63B) recommend regarding password changes?

    • Passwords should be changed every 30 days
    • Verifiers should not require periodic password changes — Right.
    • Passwords should always include a mix of symbols and numbers
    • Password managers should be banned for security reasons

    NIST explicitly states verifiers should not force periodic password changes, and should instead check against breached-password lists and allow password managers.

  3. 3. Why are passkeys considered resistant to phishing?

    • They use a longer password than usual
    • There is no shared secret to steal; the private key never leaves the device and cannot be typed into a fake site — Right.
    • They require a fingerprint every single time with no exceptions
    • Passkeys cannot be used on phones

    A passkey’s private key stays on the device; a phishing site can only ever obtain a shared secret, and a passkey does not have one to give up.

  4. 4. What should you do if you suspect a password was exposed through a phishing click or a breach notice?

    • Wait to see if anything bad happens before acting
    • Change that credential immediately and check whether it was reused elsewhere — Right.
    • Ignore it if the account has no sensitive data
    • Only worry if the service explicitly requires a change

    Because a reused password puts every account using it at risk, acting immediately — changing it and checking for reuse — limits the damage.

Do it with FireAI

Put this lesson into practice on your own Mac.

Sources

Put it into practice on your Mac

Try every feature free for 17 days, no card needed.

Download for Mac Docs