AES-256-GCM and Argon2id, explained for photo vaults

TigerVault team · Updated · 6 min read

A well-built photo vault uses two kinds of encryption: a cipher such as AES-256-GCM, which scrambles your photos so they cannot be read or secretly changed, and a key-derivation function such as Argon2id, which turns your short PIN or pattern into a key that is slow and expensive to guess. The second matters at least as much as the first, because nobody breaks AES-256: they guess the PIN.

Encryption terms get thrown around in app descriptions as if they settle the question. They don’t, on their own. This guide explains what each part does, where vaults usually go wrong, and what to look for.

The two jobs: locking the files, and making the key

An encrypted vault has two separate problems to solve:

  1. Lock the files so that the bytes on the phone, or in a backup, are useless without the key. This is the cipher’s job: AES-256-GCM.
  2. Make the key from something a human can remember, like a 4-digit PIN or a pattern, without making that key easy to guess. This is the key-derivation function’s job: Argon2id.

Most marketing talks only about the first. Most real-world weaknesses are in the second.

AES-256-GCM: what the letters mean

Why authentication matters for photos: without it, an attacker who cannot read a file might still be able to corrupt, cut or swap parts of it, and an app might not notice. With GCM, the vault knows.

Where vaults get AES wrong

Argon2id: turning a PIN into a key

A 4-digit PIN has 10,000 possible values. If the key were simply a quick hash of the PIN, a laptop could try all 10,000 in well under a second once it had a copy of the encrypted files. AES-256 would not help at all.

A key-derivation function fixes this by making every guess deliberately slow and costly. Argon2id won the Password Hashing Competition in 2015 and is specified in RFC 9106. It is memory-hard: each guess needs a large block of memory as well as time, which makes the graphics cards and custom chips attackers use far less effective than they are against older functions.

The settings matter. The OWASP Password Storage Cheat Sheet gives 19 MiB of memory and 2 passes as a minimum for Argon2id. More memory and more passes make each guess costlier.

Two more details separate good designs from weak ones:

The honest limit

Argon2id makes guessing slow; it does not make a weak secret strong. A 4-digit PIN is still only 10,000 guesses, just slower ones. That is why longer secrets matter, and why a 5×5 pattern, which can be far longer than a PIN, is useful (our guide Pattern lock vs PIN does the numbers).

The key behind the key

Well-designed vaults add one more layer. Instead of encrypting your files directly with the key from your PIN, they generate a random master key for the vault and use your PIN-derived key only to lock that master key. This brings three benefits:

What to look for, in one list

Look forWhy
AES-256-GCM or another authenticated cipher (such as ChaCha20-Poly1305)Files cannot be read or silently altered
Thumbnails, names and folders encrypted tooOtherwise the private details leak around the cipher
Argon2id (or scrypt, or PBKDF2 with a very high iteration count)Each PIN or pattern guess is slow and costly
Random salt, PIN never storedNo shortcuts for an attacker who copies the files
Random master key per vaultStrong file key, painless PIN changes, safe recovery
Encryption on the device, before saving or uploadingNobody along the way sees the plain file

How TigerVault does it

For transparency, here is TigerVault’s design, from our security overview. Each vault has its own random 256-bit master key. Every photo, video and file is encrypted on the device with AES-256-GCM under its own per-file key, in 64 KiB chunks, so a video can be played by decrypting only the part on screen. Thumbnails, names, folders and sizes are encrypted too. Your pattern goes through Argon2id with 64 MiB of memory and 3 passes and a random salt, and only unlocks the master key; it is never stored. Nine recovery words lock the same master key a second way. There are no TigerVault servers.

Questions people ask

Is AES-256 encryption enough to protect a photo vault?

Not on its own. AES-256 is not the weak point; the key is. If the key comes from a short PIN through a quick hash, or the key or PIN is stored on the phone, someone with a copy of the files can guess or read their way in. Look for Argon2id, a random salt and a PIN that is never stored.

Is Argon2id better than PBKDF2 for a vault?

For guessing attacks, usually yes. Argon2id needs a lot of memory for every guess, which takes away much of the advantage of graphics cards and custom chips. The OWASP Password Storage Cheat Sheet names Argon2id as the first choice and PBKDF2 mainly for systems that need FIPS-140 compliance, where it asks for 600,000 or more iterations with HMAC-SHA-256.

How can I tell if a photo vault app really encrypts my photos?

Look for a published description of its design that names the cipher, the key-derivation function and its settings, and says whether thumbnails and file names are encrypted too. An app that only promises “strong encryption” without naming it, or that can reset your PIN by email, does not tell you enough.

What encryption does TigerVault use?

AES-256-GCM for every photo, video and file, and for thumbnails, names and folders, with a random 256-bit master key per vault. The pattern goes through Argon2id with 64 MiB of memory and 3 passes, and is never stored.