Security
SP ID & Card Vault is a private, single-owner application. It has no server and no network code; everything it protects stays on one iPhone.
Summary
- Card records and photographs are encrypted with AES-256-GCM, one random key per card, wrapped by a master key.
- The master key is a Keychain item readable only on this device, only while a passcode is set, and only after Face ID matches the current biometric set. Unlocking the app is reading that key.
- The vault locks when the app leaves the foreground. An opaque curtain hides the app in the app switcher and during screen recording.
- Card numbers are masked; revealing one needs a fresh Face ID check and lasts 30 seconds.
- A bank card's security code (CVV/CVC), its PIN and magnetic-stripe data are never stored. The security code is blacked out in the photograph before it is encrypted.
- Backups (
.spvault) are fully encrypted with a passphrase (PBKDF2-HMAC-SHA256, 600 000 iterations). - No analytics, no crash reporter, no third-party code, no iCloud, no Spotlight indexing, no widget.
Details: docs/CRYPTOGRAPHY.md, docs/THREAT_MODEL.md, docs/BACKUP_FORMAT.md, docs/SECURITY_AUDIT.md.
Limits you should know
- iOS does not allow an app to prevent screenshots. SP Vault detects them and tells you; it cannot stop them.
- If Face ID is reset and no recovery passphrase was set, only a
.spvaultbackup can bring the cards back. - A recovery or backup passphrase that is lost cannot be recovered by anyone.
Repository rules
- Never commit a real card photograph, a
.spvaultfile, a signing key or a provisioning profile (.gitignorecovers them). - Tests, screenshots and demonstrations use only the fictitious cards drawn by
DemoCardFactory(invented issuers, "SPECIMEN" watermark, published test numbers).
Reporting
Security questions: admin@spboucher.ai.