Container KEK (master key) Wrapped DEK (per file) Ciphertext on "disk"

MDM Work Container: Key Hierarchy & Crypto-Shred Wipe (2D)

This simulator runs a real WebCrypto key hierarchy behind enterprise mobile device management: a genuine AES-GCM container master key (KEK) wraps a genuine per-file AES-GCM data key (DEK) for every managed file, and each file's content is genuinely encrypted under its own DEK. Opening a file performs a real crypto.subtle.unwrapKey + crypto.subtle.decrypt round trip. The remote-wipe control demonstrates crypto-shredding for real: it deletes only the in-memory KEK object, leaving every ciphertext byte and wrapped DEK visibly intact, and every subsequent decrypt attempt genuinely fails with a real WebCrypto OperationError — provable, live proof that the data is unrecoverable without ever touching the bytes on disk.