An encrypted photo vault is an app that turns your private photos into unreadable data on the phone and only turns them back into pictures after you unlock it. That is different from a "hider" app, which moves photos out of the gallery's view but leaves them readable. In an encrypted vault, someone who copies the files off the phone gets scrambled bytes, not pictures. This page explains, in plain words, the parts that make that work on Android: the cipher that scrambles each photo, the step that makes your PIN slow to guess, the secure hardware that holds a key that can't leave the phone, and the limits no vault gets past. We make HideBerry, an encrypted vault for Android, and we use its design as the worked example, including what it does not protect against.
Hidden vs encrypted: the difference that matters
Most of the confusion around "secure" photo apps comes from mixing up two things. Hiding changes who can see a photo in normal use. Encryption changes who can read it at all.
| Situation | Hidden photo (out of the gallery) | Encrypted photo (in a vault) |
|---|---|---|
| Someone scrolls your gallery | Not shown | Not shown |
| Someone opens a file manager | Often still there as a normal image | A file of scrambled data with no readable name |
| The file is copied to a computer | Opens like any picture | Can't be opened without the key |
| An app with photo access looks through storage | May find it | Finds nothing it can open |
| You forget how to get back in | Usually easy to find again | Only your recovery method opens it |
That last row is the trade-off people miss. Real encryption means there is no back door, for anyone. We cover this side by side on hidden vs encrypted photos.
The layers inside an encrypted photo vault
A good vault is not one lock. It is several layers, each answering a different attack. Here is how they stack up in HideBerry, with the page that explains each in depth.
| Layer | What it does, in plain words | In HideBerry | Explained on |
|---|---|---|---|
| Item encryption | Scrambles each photo, video, note or file | Its own random 256-bit key per item, AES-256-GCM | How photo encryption works |
| Encrypted index | Hides file names, folders and thumbnails | SQLCipher database | How photo encryption works |
| Master key | The key that opens the vault | Random 256-bit, never made from your PIN | How photo encryption works |
| PIN stretching | Makes each PIN guess cost real work | Argon2id, 64 MiB of memory, 3 passes | PIN vs pattern |
| Hardware key | Ties the vault to this phone's secure chip | Android Keystore, StrongBox when present, otherwise the TEE | Android Keystore explained |
| Wrong-attempt waits | Slows guessing through the app | No wait for 4 tries, rising to 30 minutes per try | Guessing protection and lockouts |
| Screen protection | Keeps the vault out of screenshots and previews | Screenshots, screen recording and the recent-apps preview blocked | Screenshots and recent apps |
| Recovery words | Lets you back in if the PIN or phone is gone | 12 words (BIP39) encoding a 128-bit secret | Recovery words explained |
No single layer is the whole story. Encryption without a hardware key leaves copied files open to fast guessing on a computer. A hardware key without waits leaves the app open to fast guessing on the phone. Waits without encryption are just a door with no wall around it.
How photo encryption works, in short
When you put a photo into HideBerry, the app makes a brand-new random 256-bit key just for that item and encrypts it with AES-256-GCM. AES is the standard cipher used across the industry; "256" is the key length; GCM is a mode that also adds a tamper check, so a file that was changed fails to open instead of opening wrong. Large files, such as videos, are encrypted in 1 MB segments with Tink's streaming encryption.
The list of what is in the vault (names, folders, thumbnails) is kept in a separate database encrypted with SQLCipher, an encrypted version of the SQLite database most Android apps use. On disk, even the file names are unreadable.
Above all of this sits the vault's master key. It is random, and it is never worked out from your PIN. Your PIN's job is to unlock the master key, not to be the key. Full walk-through: how photo encryption works on Android.
How to encrypt photos on Android
Android phones already encrypt their storage. Full-disk encryption isn't allowed on new phones running Android 10 or newer, so those phones use file-based encryption, which keeps private data protected while the phone is off or not yet unlocked since it started. Once you unlock the phone, apps and anyone holding it see your photos normally. That gap is where app-level encryption helps: a second layer that stays locked even while the phone is unlocked.
Your options run from the phone maker's private folders (Samsung Secure Folder, Google Photos Locked Folder) to dedicated vault apps. The step-by-step comparison, including what each one actually protects, is on how to encrypt photos on Android.
Android Keystore, StrongBox and the TEE
The Android Keystore is Android's safe place for keys. An app can ask it to create a key that is used inside secure hardware and never handed out, not even to the app. On most phones that hardware is the TEE (Trusted Execution Environment), a walled-off area of the main processor. Some phones also have StrongBox, a separate security chip with its own processor and storage, which Android has supported since Android 9.
HideBerry wraps your PIN-derived key with one of these hardware keys, choosing StrongBox when the phone has it. The effect: copying the vault files off the phone does not let anyone guess the PIN on a fast computer, because one of the keys never leaves the chip. More, including how to check what your phone has: Android Keystore and secure hardware explained.
PIN vs pattern: the numbers
A 6-digit PIN has exactly 1,000,000 possibilities (10 × 10 × 10 × 10 × 10 × 10). A 6-dot pattern on a 3×3 grid has at most 60,480, because it picks 6 of the 9 dots in order (9 × 8 × 7 × 6 × 5 × 4), and grid rules bring the real number lower. So a 6-digit PIN has more than 16 times as many options as a 6-dot pattern, before you count how predictable people are.
With HideBerry's wait schedule, a guesser through the app gets about 56 tries in the first day and 17,528 in a year. Trying every 6-dot pattern would take about 3.4 years; trying every 6-digit PIN, about 57 years. The working is on PIN vs pattern: which is stronger.
Guessing protection and lockouts
Waits after wrong tries are the vault's answer to someone sitting with your phone and trying codes. In HideBerry, the first 4 wrong tries have no wait. Then the wait grows: 30 seconds after the 5th, 1 minute after the 6th, 5 minutes after the 7th, 15 minutes after the 8th, and 30 minutes after the 9th and every one after that.
We are open about what this is and isn't. It slows guessing through the app. It is not encryption, and someone with root access, or who moves the phone's clock forward, can get past it. Why app waits differ from your phone's own lock screen limits, and what still protects you when waits are skipped, is on guessing protection and lockouts.
Screenshots and the recent-apps preview
A vault that encrypts files but lets the phone save a screenshot of an open photo has a leak. Android gives apps a window setting, FLAG_SECURE, that keeps a screen out of screenshots and off non-secure displays. HideBerry sets it on its window, always on with no setting to turn it off, so screenshots and screen recording of the app are blocked and its preview in the recent-apps view is hidden. What this covers, and what it can't (a second camera pointed at the screen), is on blocking screenshots and the recent-apps preview.
What a vault can't stop
Encryption protects data that is locked. It does nothing for data on screen, data you took out, or a phone already taken over by root access or deep malware. The list we give every reader:
- Someone holding your phone unlocked can try to guess your PIN or pattern in the app (waits slow this down).
- Root access, malware with deep system access, or specialist forensic tools on an unlocked phone.
- Whatever is on screen while the vault is open.
- Copies you take out of the vault, and originals left in the gallery or in cloud photo backups made before you put them in.
- Losing both your backup file and your recovery words.
Each of these, with what you can do about it, is on limits of a photo vault. Our own summary of HideBerry's protections and limits is on HideBerry security.
Terms on these pages, in one line each
| Term | Plain meaning |
|---|---|
| AES-256-GCM | The cipher that scrambles each item, with a built-in check that it wasn't changed |
| Tink | Google's cryptography library, which HideBerry uses for item encryption |
| SQLCipher | An encrypted version of SQLite, the small database inside most Android apps |
| Argon2id | A slow, memory-heavy way of turning a PIN into a key, so each guess costs time and memory |
| Android Keystore | Android's service for keys that apps can use but can't read or export |
| TEE | Trusted Execution Environment: a walled-off area of the main processor for secrets |
| StrongBox | A separate security chip, on some phones, with its own processor and storage |
| BIP39 | A public standard for writing a random secret as a list of ordinary words with a checksum |
FLAG_SECURE | An Android window setting that keeps a screen out of screenshots and off non-secure displays |
Questions to ask any encrypted photo app
Whether you choose HideBerry or another app, these questions separate real encryption from a hiding trick:
- Does it say which cipher it uses, and for what (photos, names, thumbnails)?
- Is the key made only from your PIN, or is there a random key protected by the PIN and by hardware?
- Are file names and thumbnails encrypted too, or only the photos?
- What happens after many wrong guesses, and does it say how that can be bypassed?
- If you forget your PIN, how do you get back in? If the answer is "we reset it for you", someone other than you holds a way in.
- Does it need the internet, an account or a cloud?
- Does it say what it can't protect against?
A longer checklist for comparing apps is on how to choose a photo vault app. Unlocking with a fingerprint instead of a code is a separate decision; we compare the two on fingerprint vs PIN for app lock.
Related Considerations
Is an encrypted photo vault worth it if my phone is already encrypted? Phone encryption protects a phone that is off or not yet unlocked since starting. Once unlocked, everything is readable to whoever holds it. A vault adds a second lock that stays shut while the phone is unlocked and in someone else's hands, which is the moment most privacy slips happen.
Does encryption slow down viewing photos? Decrypting a photo for display takes a moment on a modern phone. HideBerry opens photos, videos, text and PDFs inside the app without writing a decrypted file. Large videos are encrypted in 1 MB segments, with Tink's streaming encryption.
Can a vault company open my photos? That depends on whether it holds a key. HideBerry has no account, no server and no internet permission, and nobody, including us, can open a vault or reset access. The flip side: if you lose both your backup file and recovery words, nothing can bring the vault back.
Is AES-256 the part that makes a vault strong? It is necessary but not enough. Attacks on vaults rarely break the cipher. They guess the PIN, read an unencrypted index, or grab a screenshot. That is why the PIN stretching, hardware key, waits and screen protection matter as much as the cipher.
FAQs
What is an encrypted photo vault?
An encrypted photo vault is an app that stores your photos as encrypted data, so they can't be viewed or opened without the vault's key. Unlike a hidden folder, the files are unreadable even if someone copies them off the phone. You unlock the vault with a PIN, pattern or fingerprint to see your photos inside the app.
Is AES-256 encryption enough to keep photos private?
AES-256 is a strong, standard cipher, but the cipher is rarely the weak point. A vault also needs a key that can't be guessed quickly from a short PIN, encrypted file names and thumbnails, limits on guessing, and protection against screenshots. Look at the whole design, not one number.
Can someone open my encrypted photos if they copy the files to a computer?
In HideBerry, not with the PIN alone. The key made from your PIN is wrapped again by a key held in the phone's secure hardware, which can't be copied off the phone. A backup file is a different case: it opens with your 12 recovery words on any phone, so keep those words private and offline.
Are encrypted photos safe if someone has my unlocked phone?
Safer than photos in the gallery, but not untouchable. The person can try to guess your PIN or pattern in the app, which HideBerry's waits slow down. Someone with root access or specialist tools on an unlocked phone is beyond what any app can stop. Use a phone screen lock and don't hand over your phone unlocked with the vault open.
What happens if I forget my vault PIN?
In HideBerry, your 12 recovery words let you choose a new PIN or pattern, and everything stays in the vault. Without the words there is no reset, because nobody else holds a key. More on this is on forgot photo vault PIN.
See how HideBerry protects your photos
HideBerry is an encrypted photo vault for Android, coming soon to Google Play. It has no account, no cloud, no ads and no internet permission, and it says plainly what it can't stop. Read the full design and its limits on HideBerry security, or see everything the app does on HideBerry features.
Sources
- Android Keystore system, Android Developers
- Trusty: A Trusted Execution Environment for Android, Android Open Source Project
- Encryption, Android Open Source Project
- WindowManager.LayoutParams: FLAG_SECURE, Android Developers
- Recommendation for Block Cipher Modes of Operation: GCM and GMAC (SP 800-38D), NIST
- RFC 9106: Argon2 Memory-Hard Function for Password Hashing, IETF
- BIP 39: Mnemonic code for generating deterministic keys, Bitcoin Improvement Proposals
- Hide sensitive photos & videos in Locked Folders, Google Photos Help
- Use the Secure Folder on your Galaxy phone or tablet, Samsung US
- SQLCipher: Full Database Encryption for SQLite, Zetetic