Encryption turns readable information into scrambled data that only the right key can turn back. Think of a locked box: anyone can see the box, carry it or even steal it, but only the person with the key can open it and read what's inside. Everything else you'll hear about encryption, from AES-256 to "end to end", builds on that one idea.
The box and the key
Picture putting a letter in a strong box and locking it. The postman can carry the box, a thief can take it, and a nosy neighbour can shake it, but none of them can read the letter. You can, because you hold the key.
Encryption does the same thing with data. A recipe, called the algorithm, mixes your photo with a key, which is a long secret number, and what comes out is scrambled. The same recipe with the same key unscrambles it. Any other key gets nothing useful.
Two details make the comparison even closer. First, the design of the box can be public. Well-tested encryption methods are published for anyone to study, and they rely on the key staying secret, not the design. Second, a box you can open with a hairpin isn't much of a box, which is why the way a key is made matters so much.
What scrambled data looks like
Here is a real example. This sentence:
Meet me by the lighthouse at six.
encrypted with AES-256 and a random key, then written out as letters, numbers and symbols so it fits on a page, becomes:
nWuWGB2tLFesD+YD2iZ2CiAHBwO9OlvzqTqALxzxXfOk
Encrypt the same sentence with a different key and you get something completely different:
tmrT52m+drE/xGgn2A/5yrgFTVCDXlcHgkxtjkklsw3T
Nothing in either line hints at lighthouses or six o'clock. Photos work the same way. An encrypted photo isn't a blurred or pixelated picture. It isn't a picture at all, just data that no gallery app can open, not even as a thumbnail.
Data at rest and data in transit
You'll see these two phrases in privacy policies. They're simpler than they sound.
- Data at rest is data sitting in storage: on your phone, on a memory card or on a company's servers. Modern phones encrypt their own storage: every Android phone that launches with Android 10 or later is required to use file-based encryption, and your files become readable once you unlock the phone.
- Data in transit is data travelling across a network, like a photo on its way to a cloud backup. Google's backup help page says that all data, photos and videos included, is encrypted as it moves between your device, Google's services and its data centres.
Both are useful, and both have edges. Your phone's own encryption does little once someone is holding your phone unlocked, because by then everything on it is readable. Encryption in transit protects the journey, not the destination: the company at the other end can unlock what arrives, unless it was encrypted with a key that only you hold. That last arrangement is what people mean by end-to-end encryption.
A lock screen is not encryption
Many apps ask for a PIN before they show your photos. That's a lock on the door, and it's useful against someone casually scrolling. But if the photos behind it are ordinary files, anyone who goes around the door, for example with a computer and the unlocked phone, can read them.
This isn't only a theory. In a 2022 study of 20 popular vault apps, researchers retrieved the hidden files from 15 of them without rooting the phone. Often the files were simply in hidden folders or had their file types changed, and only 5 of the 20 apps had tried to encrypt files at all.
So the question to ask any app is simple: are the files themselves encrypted, with a key that comes from your code? If they are, going around the door gets nobody anywhere. They're left holding a locked box.
Who holds the key matters more than the algorithm
Two services can both say "encrypted with AES-256" and give you very different privacy. The difference is who holds the key.
Apple's iCloud shows this clearly, and as of November 2026 Apple documents both options. With standard data protection, the keys are kept in Apple's data centres so Apple can help you recover your data, and iCloud Photos is encrypted in transit and on the server with keys that Apple holds. With Advanced Data Protection turned on, Photos becomes end-to-end encrypted, the keys stay on your trusted devices, and Apple says it won't have the keys to help you recover your data.
Android has the same split. Google says some backup data is end to end encrypted with your device's screen lock, and that photos and videos in Google Photos aren't encrypted by your screen lock.
Neither choice is wrong. A company that holds the key can rescue you when you forget your password. A key that only you hold means nobody else can read your files, and also that nobody else can rescue you. Asking "who has the key?" tells you more than any algorithm's name.
What AES-256 means, in plain words
AES stands for Advanced Encryption Standard. It's a public recipe for scrambling data, published by the US National Institute of Standards and Technology in 2001, and it's one of the options Android itself uses to encrypt the files on your phone.
The number is the size of the key. The standard comes in three sizes, AES-128, AES-192 and AES-256, and the 256 means the key is 256 bits long. In everyday terms, that key is a random number up to 78 digits long. There are so many possible keys that nobody breaks AES-256 by trying them one by one.
So people trying to get in go after the key instead. They guess the password it was made from, or they look for wherever it's stored. That's why the two questions that matter are how the key is made and who holds it.
What "the pattern is the key" means
Cachette doesn't compare your pattern with a stored copy. It turns your pattern into the key. The dots you draw go through Argon2id, a deliberately slow, memory-hungry recipe that makes every guess expensive. The result is then combined with a second secret, the "pepper", which your phone's secure hardware keeps and won't let anything copy out. (A phone without that hardware keeps the pepper in software instead.) What comes out is your vault key. Each file is encrypted with AES-256-GCM under its own random key, and those keys are sealed under your vault key.
Two things follow. A different pattern makes a different key, so every pattern opens its own vault, and a pattern that has never been used opens an empty vault instead of showing an error. And with the pepper in hardware, someone who copies the vault's files from your phone can't test patterns on a fast computer: every guess has to run on your phone. (A backup file is different: keep it somewhere private, because it carries a check of your pattern that could be guessed against.) How a pattern becomes a key walks through each step, and the security page lists the exact settings.
The honest trade-off
If nobody else holds the key, nobody else can open your files, and nobody can reset the key for you either. Apple says this about Advanced Data Protection, and Google says it about the Files by Google Safe folder: "If you forget your PIN or Pattern, you can't access your files."
Cachette works the same way. There's no reset link, and nobody can reset a forgotten pattern, the developer included. A backup doesn't change that, because restoring one takes the backup file, a 24-word recovery phrase and your pattern. The answer is in your hands: choose a pattern you'll remember, and draw it often.
To see where encryption fits among the other ways of hiding photos, read what a photo vault app is. For the full technical design, inside Cachette's encryption goes deep.