SP ID & Card Vault
Private by design. Beautiful by engineering. Personal by purpose.
SP Vault is a private, native iOS wallet for one owner. It photographs identity documents, bank cards and other physical cards, and keeps them as faithful virtual cards: the real photograph, at the card's true proportions, encrypted on the iPhone and opened only by Face ID. No server, no account, no network code.
| Wallet | Card | Full screen | Scanner | Security Center |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Every card in these screenshots is fictitious (invented issuers, "SPECIMEN" watermark, published test numbers).
What it does
- Virtual Wallet — stacked, carousel, grid and by-category layouts; favourites; drag to reorder; cards open from their place and turn over in 3D; reflections follow the tilt of the phone.
- SP SmartScan Engine — live edge detection, sharpness / glare / light checks, auto-capture, perspective correction, manual four-corner crop, on-device OCR that proposes the name, issuer, holder, number and expiry. Nothing is saved to Photos.
- SP Virtual Card Engine — Original, Premium, Privacy and Full Screen rendering; ID-1 (85.60 × 53.98 mm), ID-3 (passport) and custom formats.
- SP Vault Security Engine — AES-256-GCM, one key per card, master key in the Keychain bound to the current Face ID enrolment; locks when the app leaves the foreground; numbers masked until a fresh Face ID check.
- Bank cards — last four digits only in lists; the security code is blacked out in the photograph before encryption; no CVV, PIN or magnetic-stripe data is ever stored.
- SP Privacy Shield — curtain in the app switcher and during screen recording; screenshot detection.
- Search — instant, local, encrypted index; nothing in Spotlight.
- Expiry dashboard — valid, expiring soon, expired; local reminders at 180 / 90 / 60 / 30 / 7 days and on the day, with generic text.
- Backup & Restore — encrypted
.spvaultfiles protected by a passphrase; restore on a new iPhone. - Security Center — live checks of Face ID, key, encryption self-test, file protection, storage, backups and recovery.
Status — 1.0.0 release candidate
Built, signed and tested in the simulator: 95 unit tests, 25 UI tests and 2 real-LocalAuthentication tests pass; the Release build is signed for device with the provisioning profile of ai.spboucher.idcardvault.
Not yet done: installation on the owner's iPhone and everything that only a device can show — real Face ID with the production Keychain protector, the real camera, file-protection enforcement, haptics and motion. No iPhone was connected during development. See docs/SECURITY_AUDIT.md for the full list and docs/INSTALLATION.md for the device checklist.
Build
Requirements: Xcode 27+, XcodeGen, iOS 26+.
scripts/build.sh debug # simulator build
scripts/build.sh unit # unit tests
scripts/build.sh uitest # UI tests (fictitious demo vault)
scripts/biometry-check.sh # real LAContext path with a simulated face
scripts/build.sh release # signed Release build for iPhone
scripts/shot.sh wallet -layout carousel # screenshot of a screen in the simulatorInstalling on the iPhone: docs/INSTALLATION.md.
Documentation
| Document | Content |
|---|---|
| docs/ARCHITECTURE.md | Layers, the vault state machine, data flow |
| docs/CRYPTOGRAPHY.md | Key hierarchy, sealed-blob format, Keychain protection |
| docs/THREAT_MODEL.md | Threats, mitigations, residual risks |
| docs/BACKUP_FORMAT.md | .spvault version 1 |
| docs/DESIGN_SYSTEM.md | SP Vault Design System |
| docs/SECURITY_AUDIT.md | What was tested, inspected and not verified |
| docs/INSTALLATION.md | App ID, signing, installation, device checklist |
| SECURITY.md | Security summary and limits |
Project
- Bundle identifier:
ai.spboucher.idcardvault· display name: SP ID Vault · version 1.0.0 · TestFlight (internal), App Store Connect id 6842249888 - Swift 6, SwiftUI, UIKit, AVFoundation, Vision, VisionKit, Core Image, Metal, Core Motion, Core Haptics, CryptoKit, Security, LocalAuthentication, UserNotifications. No third-party code.
- About 13 500 lines of Swift and Metal in the app, 2 500 in tests.
Repository
- Source: https://git.spboucher.ai/sp-id-card-vault
- License: none specified (private, all rights reserved)
- Never commit a real card photograph or a
.spvaultfile.
Author
Simon-Pierre Boucher — Professor of Finance, Université du Québec en Outaouais (UQO) SP Boucher · https://spboucher.ai · https://git.spboucher.ai
- Contact: contact@spboucher.ai
- Development: dev@spboucher.ai
- Support: support@spboucher.ai
- Security: admin@spboucher.ai




