Your pattern is what unlocks your vault.
The key is derived from the pattern.

You draw a pattern on a 5x5 grid. ArkWarden derives a 256-bit encryption key from that pattern and uses the key to encrypt every file in your vault. There is no password to remember and no PIN protecting already-readable files. The security comes from the cryptography used for key derivation and encryption.

Draw a pattern. Generate a key.
Step by step

From a pattern to encryption, in four steps.

Most vault apps use your input to unlock files that are already stored in a readable form. ArkWarden uses your input to generate the key that encrypts and decrypts the data itself. Here is what happens between your finger and the encrypted file on disk.

Pattern Shape you draw
Salt Random, per vault
PBKDF2 Key derivation
256-bit key Master key
AES-256-GCM File encryption
256
Bit encryption key
PBKDF2
Key derivation standard
0
Keys stored on servers
1

You draw your pattern

You connect dots on a 5x5 grid. ArkWarden records which dots you touch and the order you touch them in. That sequence is your pattern.

The grid is intentionally large. A 5x5 grid produces billions of possible patterns, significantly more than a 6-digit iPhone passcode, which has one million combinations. More dots means more entropy, which means a harder target for guessing attacks.

2

The pattern derives a key

ArkWarden feeds your pattern into a key derivation function. The function combines the pattern with a random salt that is unique to your vault, then runs through hundreds of thousands of hashing rounds before producing a 256-bit output.

  • The salt is generated when you create the vault and stored in the iOS Keychain, which is backed by your iPhone's Secure Enclave.
  • Two people who somehow draw the same pattern still produce different keys because their salts are different.
  • The hashing rounds are intentionally slow. You only draw your pattern once per session. An attacker trying large numbers of guesses must repeat the same expensive process every time.
3

Your files get encrypted

ArkWarden uses the derived key to encrypt every file you import. Photos, videos, documents, audio. Each file is encrypted with AES-256-GCM, the same authenticated encryption used inside TLS 1.3. You can also add a second factor for another authentication step after the pattern succeeds.

Each file also gets a unique nonce, the small random value that AES needs to keep two identical files from producing the same ciphertext. Two copies of the same photo, encrypted with the same key, will still produce two completely different encrypted files on disk.

The metadata that organises your vault (category names, file titles, ordering) is encrypted with ChaCha20-Poly1305. It is the same authenticated style of encryption, tuned for the small structured data that an index needs.

4

The key disappears

When you lock the vault or close the app, the 256-bit key is released from memory. It is not written to disk. It is not cached. It is not kept for later use.

The next time you draw your pattern, ArkWarden runs the same derivation against the same salt and produces the same key. Your files decrypt. Draw a different pattern and a different key is produced. Decryption fails and the data remains unreadable.

Most password systems store a verifier derived from your password and compare your input against it. ArkWarden does not store the pattern itself. Access depends entirely on whether the correct key can be derived and used to decrypt the data.
The difference

Why this is not the same as a PIN, a hidden album, or a cloud vault.

Plenty of apps will hide your files. A much smaller number will actually encrypt them.

A 4-digit PIN Apple's Hidden Album A cloud-based vault ArkWarden
What the input does Controls access to readable files Moves files into another album Sends files to a server, then encrypts Generates the encryption key itself
How many guesses to break it 10,000 Not relevant. The files are already readable. Depends on the provider's master key Computationally infeasible
Where your files live On disk, readable On disk, readable, just unlisted On someone else's servers On your device, encrypted
Who else can read them Anyone with the unlock code or device access Anyone who taps "Show Hidden Album" The provider, plus anyone the provider gives the keys to Nobody without your pattern
Recovery if you forget Reset and lose nothing There is nothing to recover Account reset, often by email A 12 or 24-word recovery phrase you control

A PIN protects access. Encryption protects the data.

A PIN controls access. The data it protects is already stored in a readable form. If the access control fails, the data is immediately available. Encryption works differently. The data is stored in an encrypted form and remains unreadable until the correct key is provided.

Hidden is not the same as encrypted.

Apple's Hidden Album and many "vault" apps move files into a private list. The underlying file data remains unchanged. Anyone with sufficient device access, or access to an unprotected backup, may still be able to read it. ArkWarden writes encrypted data to disk. Without the correct key, the contents are computationally infeasible to recover.

A second copy is safe only if the key never leaves your device.

Cloud vaults provide synchronisation, but they also create an additional place where encrypted data is stored. The provider holds at least your encrypted files and, in some systems, the keys required to recover them. ArkWarden has no server and no account system of its own. Your encrypted files stay on your device, and if you enable the optional iCloud Backup, only you hold the key that opens it.

For the curious

What is actually happening, in the language of cryptography.

You do not need any of this to use ArkWarden. We include it so anyone who wants to verify what we say can match our claims against the standards that support them. See how encryption fits into the full security design.

Part Algorithm Why this one
Key derivation from pattern PBKDF2 Standardised by NIST (SP 800-132). Available natively through Apple's CryptoKit. Slow by design, which is what you want for password-style input. Configured at 600,000 iterations, the count OWASP recommends.
Key derivation from recovery phrase PBKDF2 The phrase and the pattern both produce the same master key through the same derivation. One vault, two recovery methods.
File encryption AES-256-GCM The authenticated encryption standard used in TLS 1.3 and IPsec. Detects tampering as part of decryption.
Metadata encryption ChaCha20-Poly1305 The other authenticated cipher used in TLS 1.3 and WireGuard. Well suited to the small structured payloads a category index produces.
Salt generation Apple's secure random source (CryptoKit) Generated once per vault. Stored in the iOS Keychain. Unique even across two devices that share a pattern.
Recovery phrase BIP-39 English wordlist, 12 or 24 words The same wordlist used by hardware wallets. Generated using Apple's secure random source.

Why 600,000 iterations? OWASP sets this as the recommended minimum for PBKDF2. Each unlock attempt requires that full computation. On a modern iPhone it takes under a second. For an attacker testing millions of guesses, the total computation time increases to years.

Where the secrets live

On disk: Only ciphertext. File data encrypted with AES-256-GCM. The category index encrypted with ChaCha20-Poly1305.

In the iOS Keychain: The salt for key derivation, and the master key encrypted under a key derived from your pattern (and separately encrypted under a key derived from your recovery phrase). Both items are stored so they cannot be read while the device is locked and cannot be restored to a different device.

On Apple's servers: Nothing, unless you turn on iCloud Backup. ArkWarden has no account system and no telemetry on file contents. A backup stores only an encrypted copy in your own iCloud, which is unreadable without your recovery phrase.

In memory: The decrypted master key, only while your vault is unlocked. The moment you lock the app, the reference is released and the key is no longer available in process memory.

Hardware backing

Every iPhone supported by ArkWarden has a Secure Enclave. The iOS Keychain itself is encrypted by keys that live inside the Secure Enclave, so the master key you keep in the Keychain is ultimately protected by dedicated security hardware.

ArkWarden does not generate non-exportable Secure Enclave keys directly, because the master key has to be usable for bulk encrypt and decrypt operations, which is incompatible with non-exportable hardware keys. The Keychain path gives hardware protection without that constraint.

The threats this design defeats

Brute force against the pattern

A large pattern space, a unique salt, and a deliberately expensive derivation process make offline guessing attacks costly and time-consuming against a single vault.

Smudge inspection

The trail of fingerprints on the screen reveals which dots were touched but not the order, direction, or connections between them. On a 5x5 grid the number of orderings consistent with any given smudge is large.

Device seizure

With no pattern and no recovery phrase, the on-disk data is ciphertext. There is no stored hash that directly confirms whether a guess is correct. Every guess has to attempt decryption before the attacker can evaluate the result.

Screenshot or screen recording of your files

ArkWarden blocks system screenshots and screen recordings across the entire app, including while you draw your pattern, while you browse your vault, and while you view a file.

Network interception

ArkWarden does not send your files anywhere on its own. If you turn on iCloud Backup, only AES-256-GCM-encrypted data travels to your own iCloud, so a network attacker intercepts nothing readable.

What ArkWarden does not promise

  • It cannot protect you from someone who is looking over your shoulder while you draw your pattern in public.
  • It cannot recover your files if you lose both your pattern and your recovery phrase. That is the entire point. If we could recover them, so could a court order, a stolen backup, or a determined attacker.
  • It cannot keep a file confidential after you decrypt it and share it. Once a file leaves the vault, it is a normal file.
Common questions

Answers to what people usually ask next.

Is a drawn pattern really stronger than a typed password?
Yes, on a 5x5 grid with eight or more dots and at least one direction change. The pattern space can match or exceed that of a typical user-chosen password. The practical advantage is muscle memory. People pick weak passwords because strong ones are hard to remember. Patterns let you use something complex without having to consciously memorise it.
What happens if I forget my pattern?
You can recover using your recovery phrase. During setup, ArkWarden generates a BIP-39 recovery phrase (12 words by default, 24 words if you opt in). Enter it on the unlock screen to access your vault and set a new pattern. Keep the phrase somewhere off the device. If you lose both the pattern and the phrase, the data cannot be recovered. By anyone. Learn more about the recovery phrase.
Can ArkWarden read the files in my vault?
No. The encryption key is generated on your device from your pattern. It is never transmitted, never uploaded, and never stored anywhere we can reach. There is no account system and no ArkWarden server, and the optional iCloud Backup is encrypted on your device before it leaves, so it stays unreadable to us too. As a result, we cannot access your files.
Is my pattern stored on the device?
No. ArkWarden does not store the pattern itself in any form. What we store is the master key encrypted under a key derived from your pattern. When you draw the pattern, we run the derivation, decrypt the master key, and use it to decrypt your files. A different pattern produces a different derived key, decryption fails, and the vault stays locked.
Can someone screenshot my unlock screen or my files?
No. ArkWarden blocks screenshots and screen recordings across the entire app, not just on the pattern screen. iOS handles this at the system level, so any attempt to capture the screen produces a blank frame.
What does PBKDF2 do here, and why not Argon2?
PBKDF2 turns your pattern into an encryption key, slowly enough to frustrate offline guessing. Argon2 is not available in Apple's native frameworks, so we use what Apple ships in CryptoKit: PBKDF2 with a high iteration count. NIST still recommends PBKDF2 (SP 800-132), and using the platform implementation keeps us inside Apple's audited cryptographic boundary.
Can Apple or iCloud see the photos in my vault?
No. Your files are encrypted on your iPhone with a key derived from your pattern. If you enable iCloud Backup, only ciphertext leaves the device, encrypted with AES-256-GCM before upload, so neither Apple nor ArkWarden can read the contents. Without your pattern or recovery phrase, that backup is unreadable.
What if I use the same pattern on a different vault or device?
You will get a different encryption key. Each vault generates its own random salt during setup, and the salt is part of the derivation. The same pattern on two vaults produces two completely unrelated keys.
Sources

Standards and specifications referenced on this page.

The cryptographic claims on this page are based on published standards from recognized bodies. Each link points to the primary source.

  • NIST SP 800-132. Recommendation for Password-Based Key Derivation. National Institute of Standards and Technology. nvlpubs.nist.gov
  • NIST SP 800-38D. Recommendation for Block Cipher Modes of Operation: GCM. National Institute of Standards and Technology. csrc.nist.gov
  • FIPS 197. Advanced Encryption Standard (AES). National Institute of Standards and Technology. csrc.nist.gov
  • RFC 7539. ChaCha20 and Poly1305 for IETF Protocols. Internet Engineering Task Force. datatracker.ietf.org
  • BIP-39. Mnemonic wordlist standard for generating deterministic keys. bips.dev/39
  • FIDO2 / WebAuthn. Web Authentication standard for hardware-backed authentication. W3C and FIDO Alliance. w3.org
  • OWASP Password Storage Cheat Sheet. PBKDF2 iteration count recommendations. Open Web Application Security Project. cheatsheetseries.owasp.org
See it in practice

Situations where encryption matters.

ArkWarden

Give your files real encryption.
Not just a lock screen.

Draw a pattern. Derive a 256-bit key. Encrypt the files you want to keep private, on your device, with no account and no server.

Scan to download ArkWarden
Install on iPhone. No account, no email.
Point your camera at the code.
Download on the App Store
Read about the recovery phrase
AES-256-GCM and ChaCha20-Poly1305 via Apple CryptoKit BIP-39 recovery phrase, 12 or 24 words, generated on device No account, no server, no telemetry on file contents