Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Why iPhone's Hidden Album Isn't Encrypted—and How We Built a Zero-Cloud AES-256-GCM Vault (.pvsecure)

Every week people assume locking Apple Photos' Hidden Album protects private IDs, medical scans, financial receipts, and personal videos. Under the hood, however, the Hidden Album shares the exact same device passcode as the iPhone lock screen—meaning anyone who knows or shoulder-surfs your phone's unlock PIN opens your Hidden Album in two seconds—and iCloud Photos sync replicates those files…

People often think that Apple Photos' Hidden Album safeguards private data like medical records, financial documents, and personal videos. However, it uses the same device passcode as the iPhone lock screen, allowing anyone who knows or observes the unlock PIN to access the Hidden Album in just two seconds. iCloud Photos sync also replicates these files off-device unless disabled entirely.

To address these limitations, we developed PhotoVault: Encrypt & Compress (App Store id6824412013 for iPhone & iPad on iOS 18+), aiming for a zero-server architecture that addresses three critical engineering challenges:

- True At-Rest AES-256-GCM Encryption with a separate Password or 5×5 Pattern, independent from the iPhone passcode.

- Zero cloud key escrow.

- Offline device-to-device migration with on-device Vision OCR, enabling users to search printed text within encrypted receipts and contracts without any network requests.

We have also documented this process in our open repository: https://github.com/minchopm/pvsecure-spec.

Here's how PhotoVault tackles these challenges:

1. **Separating Vault Credentials From the Device Passcode**: Mobile folder hider apps typically store raw JPEGs in the app's Documents/ directory behind a UI-only PIN screen, leaving plaintext media vulnerable if the device is backed up or inspected. PhotoVault encrypts media and searchable metadata index with AES-256-GCM via Apple CryptoKit.

The per-installation symmetric key is secured with kSecAttrAccessibleWhenUnlockedThisDeviceOnly, ensuring it never leaves the iPhone's Secure Enclave-backed Keychain. Users can choose an independent Password or 5×5 Pattern, in addition to Face ID / Touch ID, to lock the vault immediately when the scenePhase leaves .active.

2. **Portable .pvsecure Archives**: This eliminates the need for cloud servers to transfer large encrypted files. PhotoVault's Secure Share exports a standalone .pvsecure file based on the user's chosen Password or 5×5 Pattern, utilizing a 32-byte CSPRNG salt (SecRandomCopyBytes) and PBKDF2-HMAC-SHA256 (210,000+ iterations) to derive a 256-bit key. A 96-bit nonce and 128-bit GCM authentication tag guarantee integrity verification during Secure Import over AirDrop, Files, or USB-C drive.

3. **Running Searchable Receipt OCR**: Unlike cloud-based photo managers that index receipts and ID cards on remote GPUs, PhotoVault performs OCR locally on Apple silicon iPhones (iOS 18+). Using VNRecognizeTextRequest with accurate recognition and automatic language detection, it extracts printed text in milliseconds. The extracted text is normalized, processed, and written into the encrypted on-device index, all without external API calls, ad SDKs, or telemetry.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Bypassing the Silicon Handcuffs: Deterministic FP16 Tensor Throughput via Stickless UEFI and S3 Persistence

Bypassing the Silicon Handcuffs: Deterministic FP16 Tensor Throughput via Stickless UEFI and S3 Persistence Table of Contents Executive Summary Methodology & Architectural Formulation Implementation &…

  • Stickless UEFI unlocks FP16 tensor throughput from 412.6 GB/s to 784.3 GB/s, a 90.1% increase.
  • S3 sleep persistence cuts S3 wake latency by 80.3%, improving overall system responsiveness.

Memory-Bound Generation: Decoding Attention, KV Cache, GQA, and GRPO at Scale

Memory-Bound Generation: Decoding Attention, KV Cache, GQA, and GRPO at Scale Table of Contents Executive Summary Methodology & Architectural Formulation Implementation & Quantitative Simulation…

  • Memory bandwidth is the primary bottleneck in token generation latency
  • Unquantized KV-cache growth leads to catastrophic cache eviction
  • FP8 E4M3 quantization and custom linear attention kernels improve throughput

More from Wednesday 25 November →