Encryption Deep Dive
Does UltraLocked Use Perfect Forward Secrecy?
No. Files in your vault each get their own derived encryption key, but stored files do not have perfect forward secrecy. Earlier versions of this page said otherwise, and that was wrong.
What Happens When You Add a File
- Fresh key material: The app generates a new ephemeral key pair for the file.
- Key agreement: That key pair is combined with your device's master key, which is protected by the Secure Enclave.
- Key derivation: HKDF turns the result into a key used only for this file.
- Encryption: The file is encrypted with AES-GCM by CryptoKit, in the app.
The encrypted file is stored with the public half of the ephemeral key so the app can derive the file key again when you open it.
What This Protects
If one file's key were exposed, that key would not decrypt your other files.
What This Doesn't Protect
Forward secrecy would mean old files stay safe even if the long-term key is later compromised or used by an attacker. That isn't the case here: the stored public key plus the device master key can re-create a file's key. Anyone who can use that master key on your device, such as through an unlocked, compromised phone, is not stopped by per-file keys.
The separate animated QR transfer does use fresh session keys for each transfer. That applies only to the transfer, not to files stored in the vault.
For the full model, see the security page and the Security Whitepaper.
Still have questions?
Contact Support