Skip to main content
coreydaley.dev

Where to keep two-factor recovery codes

Recovery codes, sometimes called backup codes, are what get you back into an account when you lose the phone or key that generates your two-factor codes. Most services give you a list of one-time codes when you turn on two-factor authentication. Each code works once, in place of the second factor.

They’re easy to ignore until the day you need them, and on that day the phone that usually unlocks everything may be the thing that’s missing.

What a good place looks like

  • It survives losing your phone. A screenshot on the phone, or a note that only lives on it, fails exactly when you need it.
  • It isn’t sitting next to your password. Two-factor works because an attacker needs two different things. Codes stored right beside the password, in plain text, put both in one place.
  • You can find it. Name each set of codes after the account, so you’re not hunting through screenshots during a lockout.
  • You replace it when you regenerate. Generating new codes makes the old ones stop working.

Good options

  • On paper, somewhere safe at home. Low-tech, can’t be hacked remotely, and survives any device failure. The downside is that it’s only available where you keep it.
  • A password manager, separate from the login. A secure note, or a separate vault, keeps codes encrypted and synced. Keeping them out of the login entry itself means one leaked entry doesn’t hold both.
  • Secret Store. Each set of codes is a named secret in Apple’s end-to-end encrypted iCloud Keychain, synced to your Mac, iPhone and iPad, masked until you reveal it, and kept apart from the logins in the Passwords app. You can also back them up to an encrypted file that any Mac can open.

Whatever you choose, test one thing once: that you can reach the codes from a device other than your phone.

What to avoid

  • Screenshots in your photo library, which syncs widely and is searchable.
  • Email to yourself.
  • A plain text file in a synced folder.
  • Only one copy, on the same device as your authenticator app.
Download on the App Store

Free on Mac, iPhone and iPad. No in-app purchases, no limits, no account.