Phones and newer computers encrypt their storage, but only a passcode makes that encryption mean something. A long passcode is harder to break: see Use a long passcode.
iPhone
- Set a passcode in Settings → Face ID & Passcode (on iPhone Duo or iPhone SE: Touch ID & Passcode). Apple says setting a passcode turns on data protection, which encrypts the iPhone's data.
Android
- Phones that launched with Android 10 or later are encrypted by design, and Google says all Pixel phones are encrypted by default. Set a PIN or password: see Set a strong screen lock.
Mac
- Open Apple menu → System Settings → Privacy & Security → FileVault and check that it is on. On Macs with Apple silicon, FileVault is on by default from macOS 26.4, but it can be turned off.
- Apple says your Mac's FileVault recovery key can show up in the Passwords app on an iPhone signed in to the same Apple Account. If that phone is taken unlocked, the key to your Mac may go with it. See Encrypt the disk and keep the recovery key.
Windows
- Open Settings → Privacy & security → Device encryption and check that it is on. If you don't see it, your PC may not support it: see Encrypt the disk and keep the recovery key.
- Microsoft attaches the recovery key to your Microsoft account. Anyone who gets into that account can read it.
Encryption protects a device that is off or locked after a restart. Once you have unlocked it, the data is open to whoever holds it.