How end-to-end encryption works, from key to photo
The mechanism has three stages, and knowing them makes marketing claims easier to judge. None of it needs mathematics beyond the idea that a key is a secret number and a lock is a procedure that needs it.
Key generation
Each device you use creates its own keys when you set it up, and the secret half of those keys never leaves the device or the group of devices you trust. Cloud services that offer end-to-end protection for photos build a circle of trusted devices. A new phone joins the circle by being approved from one that's already in it, or by using a recovery key or contact you set up earlier. The service sees only the public parts, which are no use for opening anything.
Encryption
When a photo is saved, the device scrambles it with a fresh random key, and then locks that key in turn with the keys of the devices allowed to open it. The scrambled photo and the locked key are what travel to the server. Doing it in two layers is deliberate: scrambling the photo takes one key, and sharing the photo with another device or person only requires locking that small key again.
Decryption
A device in the circle downloads the scrambled photo and the locked key, opens the key with its own secret, and then opens the photo. Nothing readable passes through the server, and nothing the server holds could be used to reconstruct the photo without a device secret. That's the property the phrase end-to-end names: the readable form exists at the two ends and nowhere in between.
Three kinds of encryption that protect against three different people
Two quite different things get called encryption, and they protect against different adversaries. Encryption between your phone and a server stops someone on the café Wi-Fi from reading your upload. Encryption of files sitting on a server stops a thief who walks off with a hard drive. Neither stops the company, because the company holds the keys and its systems decrypt your files whenever you log in.
End-to-end encryption moves the keys. The photo is locked on your device before it leaves, and only devices you control can unlock it, so the server stores something it can't open. The price is that a company that can't open your files can't reset your access either.
| Model | Who can still read the photos | What it gives you |
|---|---|---|
| Encrypted in transit only | The service, anyone with server access | Stops eavesdropping on the connection |
| Encrypted on the server, provider holds keys | The service, plus anyone who compels or breaches it | Stops stolen disks; account recovery is easy |
| End-to-end, keys on your devices | You and whoever you share keys with | A server breach or legal demand yields scrambled data; lost keys can mean lost photos |
Transit, at rest and end-to-end side by side
Encryption in transit (TLS/SSL)
This is the padlock in a browser and the secure connection an app uses. It protects data while it crosses the network, so someone on the same Wi-Fi sees noise. It ends at the server, where the connection is opened and the photo is read in the clear. Almost every service does this, and it says very little about who can see your pictures.
Encryption at rest (server-side)
The service scrambles files on its disks. If someone steals a drive or an old backup tape, the files are unreadable to them. But the service holds the keys, because it has to open your photo whenever you view it, which means the service itself, or anyone who compromises an administrator account, can reach the readable file. This is the model most photo clouds use by default.
End-to-end encryption
Only your devices hold the keys, so the server holds scrambled data throughout. That protects against the provider, a breach of the provider and a demand served on the provider. It doesn't protect against someone holding your unlocked phone, a weak account recovery path or a recipient who saves the photo. Each model closes a door the one before it left open, and each leaves open the doors it was never meant to cover.
Is iCloud Photos end-to-end encrypted?
Apple's documentation on iCloud data security makes a clear case study. By default, 15 categories are end-to-end encrypted, including passwords in Keychain and Health data, and Photos isn't among them. Under that default, Photos are encrypted in transit and on the server, with Apple holding the keys.
Turning on Advanced Data Protection extends end-to-end encryption to 25 categories, and Photos is one of the additions along with iCloud Backup and iCloud Drive. The keys for those categories then live on your trusted devices. It's optional and it comes with responsibilities, chiefly that Apple can't recover that data for you. Even with it on, photos you share by other routes are only as private as those routes. A link, a shared album invitation and a message each have their own rules, and iCloud shared album privacy and who can see your photos in iCloud go through them.
How photo storage services handle encryption
The picture is uneven across the services most people use. iCloud Photos is encrypted in transit and on Apple's servers by default, with Apple holding the keys, and it becomes end-to-end encrypted when you turn on Advanced Data Protection, as described above. Google Photos encrypts in transit and at rest, and we found no end-to-end option for the main library in Google's help pages, which fits with Google searching your pictures by face and subject. Its Locked Folder keeps selected items behind the device screen lock, and Google lists backup as optional for it. For the other mainstream clouds, the cloud storage comparison tabulates what each documents, and the Advanced Data Protection explainer goes further on Apple's tier.
Why end-to-end protection matters more for photos than for most files
A photo is rarely only a picture. It shows faces, rooms, documents on a table and the view out of a window. It often carries the time and place it was taken, as the metadata guide explains. A phone photo of a driving licence is an identity document, and a photo from a clinic is a medical record. If a service can read those, so can anyone who gains the service's access, whether by a breach or a stolen employee credential. End-to-end protection takes the library out of that exposure. It's one reason among several to prefer it, and it holds up against a failure you can't see coming, since you don't choose when a provider is breached.
Common misconceptions about end-to-end encryption
- It makes the app impossible to break into. It protects stored and transmitted data. A stolen unlocked phone, a keylogger or a phishing page defeat it without touching the cryptography.
- Encrypted means end-to-end. A site can truthfully say your photos are encrypted while it holds the keys. The question is whose keys.
- The provider can always help me recover. Where the provider can't read the data, it can't restore it either. Recovery depends on a key or a trusted contact that you set up.
- It hides everything. The provider may still see account details, storage use, timing and the number of items.
- It is all or nothing. Services often protect some categories this way and leave others under provider-held keys, and sharing features sometimes fall back to weaker protection.
What end-to-end encryption doesn't protect
- An unlocked phone. Anyone who can open your device and your Photos app sees the images, however the cloud is protected.
- Metadata. Whether a service can see file sizes, upload times or who you shared with depends on the design and deserves reading. See EXIF data in iPhone photos for what the photo itself carries.
- What recipients do. A person you shared a photo with can screenshot it.
- Your other backups. A copy in a different service or on an old laptop follows that service's rules.
- A weak password. If an account can be reset by email or text, the reset path is part of the security.
Six questions to ask any photo app about encryption
- Are my photos encrypted before they leave my device, or after they arrive?
- Who holds the keys, and where?
- If I forget my password, can the company reset it? If yes, the company has a way in.
- What can the service still see: file names, sizes, albums, locations, the contacts I share with?
- Has anyone independent reviewed the design, and is the review public?
- How do I get my originals out if I stop using it?
A page that leans on slogans about being impossible to break has told you nothing, and a page that names the model, the limits and the trade-offs has told you something. Treat "we take your privacy seriously" as a non-answer. What zero-knowledge claims mean is a good companion, since that's another phrase that gets stretched.
How Veldrin handles keys, and where Apple still sees things
Veldrin is a private file vault for iPhone and Mac, and its key arrangement is layered. The pattern you draw derives a key that opens an encrypted index, and the index holds a separate random master key that protects the file contents. Changing the pattern re-wraps one key without re-encrypting every file. The files are encrypted on your device before a backup you start yourself is saved to a place you choose, and restoring that backup needs the pattern or the nine-word recovery phrase shown when you create the vault. There's no Veldrin account, so there's no account for anyone to reset.
The limits matter as much as the mechanism. A backup file is only as safe as the place you keep it, and whoever holds it can see its size and when it changed. Losing both the pattern and the recovery phrase is the trade-off described in the section below, and no Veldrin account exists to reset the vault. Files stay on the device unless you start a backup and choose where it goes.
The recovery trade-off nobody can design away
The design that keeps a company out also keeps you out if you lose the means to unlock. Good products say so at setup and give you a safe way to store a recovery key. An app that promises both that no one but you can open your photos and that it can always reset your password has made two statements that can't both be true, so find out which one is false before you need it.
Questions people ask
Is iCloud Photos end-to-end encrypted?
Not by default. Apple's documentation lists Photos as end-to-end encrypted only when Advanced Data Protection is turned on, which is optional and comes with recovery responsibilities that you take on.
Can a company see my photos if it uses end-to-end encryption?
Not the contents of encrypted files, if the design is what it says. It may still see other data, such as account details or when you used the service.
Does end-to-end encryption protect a stolen, unlocked phone?
No. It protects data on servers and in transit. A phone that's unlocked shows its photos to whoever is holding it, whatever the encryption design behind the cloud.
Is end-to-end encryption the same as a password-protected app?
No. A password screen controls the interface, while encryption controls whether the stored data can be read without the key. An app can have the first without the second, so ask which one it means.
What is the difference between encrypted and end-to-end encrypted?
Encrypted only says the data is scrambled somewhere. End-to-end means the keys sit on your devices, so the service stores data it can't open. A provider that holds the keys can encrypt everything and still read it.
Can end-to-end encrypted photos be recovered if I lose my password?
Only through a recovery method you set up beforehand, such as a recovery key or a trusted contact. The provider can't read the data, so it can't decrypt it for you.
Sources