AES-256-GCM (Advanced Encryption Standard with 256-bit keys in Galois/Counter Mode) is the industry-standard authenticated encryption cipher that both scrambles data with a 256-bit key and verifies via an authentication tag that not a single byte was tampered with. In Octoshield, every file is encrypted in chunks with unique per-item keys alongside encrypted thumbnails and an encrypted index.
UI access control vs. real cryptographic encryption
If you inspect how dozens of popular 'calculator vaults' and 'secret photo lock' apps on the App Store work under the hood, a startling pattern emerges: many of them do not encrypt your files at all. Instead, they display a keypad UI when you tap the icon and simply copy your `.heic`, `.jpg`, `.mov`, and `.pdf` files into a standard subfolder inside the app's sandbox directory, sometimes merely renaming the file extension from `.jpg` to `.dat`.
Relying on a UI lock screen without file-level encryption fails the moment an attacker, forensic tool, or backup extractor looks past the app's front door. If an app leaves plaintext files or plaintext preview thumbnails on disk, anyone inspecting an extracted backup, a shared cloud container, or a compromised filesystem can view every photo without ever knowing your PIN.
Real cryptographic encryption transforms the underlying bytes of the file itself so that without the mathematical decryption key, the stored data is indistinguishable from random noise.
Why AES-256-GCM in 512 KB chunks is the gold standard for mobile vaults
AES-256-GCM (Advanced Encryption Standard with a 256-bit key operating in Galois/Counter Mode, defined by NIST SP 800-38D) is an **Authenticated Encryption with Associated Data (AEAD)** cipher. Unlike legacy encryption modes that only scramble bytes, AES-256-GCM provides two simultaneous cryptographic guarantees: **confidentiality** (turning plaintext into ciphertext using a 256-bit key and unique nonce) and **integrity/authenticity** (generating a cryptographic authentication tag that mathematically verifies not a single bit of ciphertext was altered, truncated, or corrupted).
On an iPhone, encrypting a 2 MB photo in one shot is trivial, but a 10-minute 4K video or large PDF archive can easily exceed 2 GB. If a vault app tried to load a 2 GB ciphertext file into RAM all at once before verifying its authentication tag, iOS would terminate the app for exceeding mobile memory limits. That is why Octoshield (built by TengrX) implements **AES-256-GCM in 512 KB authenticated chunks**: large files are split into independent 512 KB blocks, each with its own authentication tag, allowing your iPhone to verify and stream encrypted video smoothly with minimal memory overhead.
| Cryptographic Layer | Basic 'PIN Lock' Apps | Legacy Unauthenticated Cipher (e.g., AES-CBC) | Octoshield Architecture (AES-256-GCM) |
|---|---|---|---|
| File content at rest | Plaintext JPEG/HEIC/MOV in app folder | Encrypted, but no built-in tamper detection | AES-256-GCM authenticated encryption in 512 KB chunks |
| Thumbnails & filenames | Often left as plaintext files & SQLite rows | Frequently left unencrypted for grid speed | Encrypted thumbnails & encrypted catalog index |
| Key hierarchy | None (boolean check against stored PIN) | Often a single static key derived from PIN | Random 256-bit master key + HKDF-SHA256 per-item keys |
| Hardware Keychain binding | Rarely bound to hardware | Varies; often extractable from backups | PBKDF2-SHA256 user secret + device-bound iOS Keychain key |
How Octoshield combines PBKDF2-SHA256, HKDF-SHA256, and the iOS Keychain
Even the strongest cipher like AES-256-GCM is only as secure as how its keys are generated, derived, and stored. If an app derived its encryption key solely from a 4-digit PIN without hardware binding, an attacker who obtained the ciphertext could test all 10,000 PIN combinations on a desktop GPU in less than a millisecond.
Octoshield defeats offline brute-force attacks through a multi-layered key hierarchy. First, when you initialize your vault, Octoshield generates a cryptographically random 256-bit master key. From that master key, Octoshield uses **HKDF-SHA256** (HMAC-based Key Derivation Function) to derive separate, isolated subkeys for each individual file, its preview thumbnail, and the encrypted catalog index.
Second, to lock that master key at rest, Octoshield takes your chosen secret—a numeric PIN, alphanumeric passphrase, 3×3 pattern, or safe-style combination dial—stretches it using **PBKDF2-SHA256**, and combines it with a random device-bound key stored inside the iPhone's hardware-backed Keychain. If you optionally enable Face ID or Touch ID, Octoshield stores an unlock token in a separate biometric-protected Keychain slot.
- Your secret (PIN, passphrase, 3×3 pattern, or combination dial) is stretched via PBKDF2-SHA256 and combined with a random device-bound iOS Keychain key.
- Together, those two halves unwrap the random 256-bit vault master key in memory only while the vault is unlocked.
- HKDF-SHA256 derives unique per-item keys from the master key for each file, its thumbnail, and the encrypted catalog index.
- Files are encrypted in 512 KB AES-256-GCM chunks. The local vault container is excluded from ordinary device backups; optional encrypted iCloud vault backup uses its own phrase-protected recovery envelope.
The honest tradeoff of zero-knowledge local encryption: No backdoors
There is no email reset or support decryption backdoor. Octoshield gives you a recovery phrase to reset a forgotten secret; with a completed encrypted iCloud vault backup, it can also restore the vault on another device. Preserve the phrase securely. If you lose all unlock methods and the phrase, or lose the only file copy without a usable backup, support cannot reconstruct your data.
Always choose a secret you will reliably remember, and always export essential documents or irreplaceable photos from your vault before trading in, selling, or resetting your iPhone.




