Switch to open source.Explore →

How to lock down your Apple Account and iCloud, and where to keep the keys that get you back in

December 4, 2026

Lock down your Apple Account and iCloud with Advanced Data Protection and a recovery key, and keep the keys that get you back in somewhere safe outside Apple.

Part of the guide series: Security keys you can back up

Short answer: locking down your Apple Account and iCloud takes four steps: turn on a recovery method (a Recovery Contact, a 28-character Recovery Key, or both), switch on Advanced Data Protection for iCloud, add a Legacy Contact, and optionally lock sign-in behind physical security keys. The catch is that once you harden iCloud, Apple can no longer unlock your data for you, and Apple warns not to keep your Recovery Key in Apple Passwords, Notes, Photos or iCloud Drive. Keep those keys outside Apple: on paper, in a separate password manager, or in a hardware vault you hold, like Passport Prime, whose encrypted Magic Backup restores Vault items onto a replacement device.

What changes when you lock down iCloud?

Out of the box, Apple protects your Apple Account with its own 6-digit verification code sent to your trusted Apple devices or a trusted phone number. That already stops basic password theft, but Apple still holds the encryption keys for most of your iCloud data so it can help you recover an account.

When you turn on Apple's stronger protections (Advanced Data Protection, a Recovery Key or Security Keys), you trade Apple's safety net for your own:

  • Advanced Data Protection encrypts most of your iCloud data (including iCloud Backup, Photos, Notes and iCloud Drive) end to end, so not even Apple can read or recover it.
  • A Recovery Key turns off Apple's standard account recovery process completely. If you lose your trusted devices and lose that 28-character key, you are locked out permanently.
  • Security Keys replace Apple's 6-digit codes with physical keys (or a nearby trusted Apple device) for sign-in and password resets.

None of those steps is hard to turn on. What tends to concern people is figuring out where to keep the keys that get you back in.

The four Apple keys and recovery options you need to manage

Item What it unlocks Apple's key catch
Apple Account password Sign-in and account changes Needed alongside your second factor on any new device or browser.
Recovery Contact A one-time code to reset your password and recover end-to-end encrypted iCloud data Up to five trusted people with Apple devices; Apple doesn't know who they are, so remember who you picked.
Recovery Key Password resets and end-to-end encrypted iCloud recovery (with your trusted phone number and an Apple device) 28-character code; turns off Apple's standard account recovery, and Apple cannot recover it if lost.
Legacy Contact access key Lets a chosen person request your account data after your death (with your death certificate) They need both the access key and your death certificate.

Step 1: Set up a Recovery Contact, a Recovery Key, or both

Apple requires at least one account recovery method before it lets you turn on Advanced Data Protection. For most people, adding a Recovery Contact is the easiest safety net, and adding a Recovery Key gives you a self-contained fallback that doesn't rely on another person.

Add a Recovery Contact (they get no access to your account, only the ability to generate a recovery code when you ask; they need an Apple device):

  • iPhone or iPad: open Settings > [your name] > Sign-In & Security > Recovery Contacts > Add Recovery Contact.
  • Mac: open System Settings > [your name] > Sign-In & Security > Recovery Contacts > Add Recovery Contact.

Create a Recovery Key (only turn this on once you know where you'll store it off iCloud):

  • iPhone or iPad: open Settings > [your name] > Sign-in & Security > Recovery Key > Continue, record the 28-character code, and confirm it.
  • Mac: open System Settings > [your name] > Sign-in & Security > Recovery Key > Turn On, print or write down the 28-character code, and confirm it.

Apple specifically warns against saving your Recovery Key in Apple Passwords, iCloud Photos, Notes or iCloud Drive. If you lose access to your Apple Account, you won't be able to open those apps to retrieve it.

Step 2: Turn on Advanced Data Protection for iCloud

Update every Apple device signed in to your account first (iOS or iPadOS 16.2+, macOS 13.1+, watchOS 9.2+, tvOS 16.2+, HomePod 16.0+, or iCloud for Windows 14.1+). Child accounts and Managed Apple Accounts aren't eligible.

  • iPhone or iPad: open Settings > [your name] > iCloud > Advanced Data Protection > Turn on Advanced Data Protection.
  • Mac: open System Settings > [your name] > iCloud > Advanced Data Protection > Turn On.

Two details to know before you flip the switch: web access to your data at iCloud.com turns off by default (you can re-enable it temporarily with approval from a trusted device), and a few sharing features stay on standard protection rather than end-to-end encryption: iWork collaboration, Shared Albums in Photos, and anything shared with "anyone with the link".

Step 3: Add a Legacy Contact

A Legacy Contact doesn't need an Apple Account or an Apple device, just the access key you generate and your death certificate (or local equivalent) if they ever need to request access.

  • iPhone or iPad: open Settings > [your name] > Sign-In & Security > Legacy Contact > Add Legacy Contact.
  • Mac: open System Settings > [your name] > Sign-In & Security > Legacy Contact > Add Legacy Contact.

You can send the access key over iMessage (if they use an Apple device) or choose Print a Copy to keep with your estate papers or hand to them directly. You can view or reprint it later under Legacy Contact > [contact name] > View Access Key.

Step 4 (optional): Add physical Security Keys to your Apple Account

If you want phishing-resistant sign-in on your Apple Account itself, Apple lets you replace its 6-digit codes with physical security keys. You must register at least two security keys (up to six). Passport Prime works here: create two security keys in its Keys app and register both, and its encrypted Magic Backup restores them onto a replacement Passport Prime if yours is lost. If you use single-purpose keys instead, keep the spare in a separate location. To see which other accounts accept security keys, read is a security key the same as a passkey?

  • iPhone or iPad: open Settings > [your name] > Sign-in & Security > Two-Factor Authentication > Security Keys > Add Security Keys (requires iOS 16.3 or iPadOS 16.3 or later).
  • Mac: open System Settings > [your name] > Sign-in & Security > Two-Factor Authentication > Set Up next to Security Keys (requires macOS Ventura 13.2 or later).

Enabling Security Keys signs you out of devices that have been inactive for more than 90 days, and older devices that can't update to supported software won't be able to sign back in.

Where to keep your Apple password, Recovery Key and Legacy Contact access key

The one rule that matters: don't keep your only copy inside iCloud or on the same iPhone you might lose.

  • On paper in two places: print or write down your Recovery Key and Legacy Contact access key, keep one copy in a home safe, and give a copy to a trusted family member (or put the Legacy Contact key with your estate documents).
  • In a non-Apple password manager: keeping your Apple Account password and Recovery Key inside a separate password manager like Bitwarden or 1Password keeps them reachable if your Apple Account is locked, as long as you can still unlock that password manager without your Apple devices.
  • Or keep them in a hardware vault you hold: Passport Prime's Vault app stores passwords and recovery keys on a pocket touchscreen device, outside your Apple Account and away from cloud password managers. Its encrypted Magic Backup brings your Vault items back on a replacement Passport Prime if yours is lost or damaged, so one device is enough.

How to save your Apple keys in Passport Prime's Vault

Two Passport Prime details matter before you add them:

  • Use the Vault app, not the Files app. Files saved in Internal storage or Airlock are not included in Magic Backups, so don't drop a Recovery Key PDF into Files expecting it to be backed up. Vault items are included in Magic Backups.
  • Imported vs. generated items recover differently. If you let Passport Prime generate a new Apple Account password (New Item > Password, up to 80 characters), it derives from your Master Key. Anything you didn't generate on Passport Prime (your 28-character Recovery Key, your existing Apple Account password, or a Legacy Contact access key) is added as an imported item, which restores from your Magic Backup's app data (not from the Master Key alone). Keep paper copies as your belt-and-suspenders backup either way.

To store an existing Apple password or recovery secret in Vault:

  1. On Passport Prime, open the Vault app.
  2. Tap Import Item (if you already have items saved, tap the three-dot menu in the top-right corner, choose New Item, then tap Import Item).
  3. Tap Import Password and enter the details by hand, with a clear name such as Apple Recovery Key.
  4. Save the item. If you're changing your Apple Account password at the same time, you can instead choose New Item > Password to have Passport Prime generate a strong password for you offline.

More on what restores if your device is lost or replaced: what comes back if you lose your Passport Prime.

Sources