You draw a shape on a dot grid. Argon2id turns it into a key envelope — the envelope releases a random master key, and that seals every single file key in the vault.
How a pattern is entered — at least six dots, at least one change of direction.
What is pattern unlock?
Most vault apps hide behind a PIN. Tap four digits, the photos appear. Sounds convenient — and it is. The problem: four digits make exactly 10,000 combinations. A computer tries every one in under a second. Six digits? A million. Still trivially fast.
In CryptArx the credential is not a bouncer in front of readable files. The drawn pattern is serialized and run through Argon2id — a derivation that deliberately demands memory. Only when the result authentically opens the encrypted unlock envelope does it release the master key. A wrong credential fails at the cryptography, not at an interface check.
The grid has 5×5 dots instead of the usual 3×3. Twenty-five positions allow far more paths, crossings and direction changes than nine. The larger space helps — but what matters is how unpredictable your chosen path is. A familiar letter stays guessable even if the grid could express billions of alternatives.
The difference
A PIN in front of readable files is a door in front of an open room. The pattern in CryptArx is closer to a safe mechanism: it derives the key that opens the envelope that releases the master key that seals the file keys. No link in the chain can be skipped.
How it works, step by step
01
You draw your pattern
CryptArx shows a 5×5 grid. You connect at least six dots with at least one direction change. The app stores which dots you touched in which order — that sequence is your credential.
02
Argon2id derives the key
The serialized sequence runs through Argon2id with 256 MiB memory requirement per derivation. Every candidate — yours and an attacker’s — pays the same price in time and memory.
03
The envelope releases the master key
The derived key opens the encrypted unlock envelope. Inside lies the randomly generated 256-bit master key of the vault — it was never computed from your credential and is unreachable without the envelope.
04
Every file key opens individually
The master key seals individual file keys. If a single file key is exposed, it opens only that one file — not the rest of the vault.
The encryption flow
Your pattern5×5 path
→
Argon2id256 MiB memory hardness
→
Unlock envelopeAES-GCM sealed
→
Master keyrandom, 256 bit
→
File keysone per file
→
AES-256-GCMauthenticated file
The math behind it — in plain text
2²⁵⁶AES key space
5×5dot grid
256 MiBArgon2id memory
Entropy: the measure of unpredictability
Entropy describes how hard a credential is to guess. A pattern of six dots with one bend is one of roughly 11,000 shapes — about as strong as a four-digit PIN if chosen randomly. People do not choose randomly. Longer paths with several direction changes are much harder to guess, and a strong password offers the largest search space. The credential’s entropy is the ceiling — no derivation can create entropy the gesture does not contain.
Key derivation: making every attempt expensive
Argon2id demands 256 MiB of memory per derivation on top of compute time. That is exactly what mass attacks fail on: GPUs and specialized hardware gain speed through massively parallel attempts — and memory cannot be shared arbitrarily. Every rate attack becomes noticeably more expensive instead of running in milliseconds per candidate.
AES-256-GCM: a public, well-researched standard
AES-256 is a NIST standard with 256-bit keys — the key space is simply unreachable for brute force. GCM adds authentication: change a single bit of the encrypted file and decryption fails. Security does not depend on keeping the algorithm secret — but on the chain that protects the master key.
What an attack would have to overcome
Brute force: trying every shape
Every pattern candidate pays a full Argon2id round with 256 MiB of memory. That makes rate attempts measurably expensive — but it does not lift the entropy ceiling. Choose a very simple pattern and the vault remains guessable: the algorithm makes attempts costly, it does not replace a strong choice.
Smudge traces: reading the display
On a 3×3 grid, swipe traces often reveal the shape almost completely. On 5×5 the traces show which dots were touched — but not the order, direction and connections. The approach becomes much harder, not impossible.
Shoulder surfing
A pattern can be observed while drawing. No algorithm helps against this — environment and awareness do. Alternatively, a password vault opens without a visible gesture.
Getting the device in hand
Master key and registry key live in the iOS Keychain as ThisDeviceOnly entries — they never leave the device. Without the device and an unlocked session, a file dump is ciphertext. In an open session, keys and content live in the app process — that is the limit of any software.
Honest limits
Patterns have limited entropy
Argon2id makes rate attempts expensive but creates no entropy. If you need the largest search space, choose a strong password — pattern and password are separate envelopes of the same door in CryptArx.