SPB Git

Repository Public

spbsp-id-card-vault

SP ID & Card Vault: native iOS wallet that photographs identity, banking and other physical cards and keeps them as encrypted, Face ID protected virtual cards. Swift 6, SwiftUI, Vision, CryptoKit; fully offline, no server, single owner.

12 entries at the root
History

Latest commit chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository 258267c

NameLast commitUpdated
docs chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
scripts chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
SPVault chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
SPVault.xcodeproj docs: security audit, README, changelog and screenshots; add real LocalAuthentication check
SPVaultTests chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
SPVaultUITests chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
.gitignore chore: app icon, ignore agent worktrees
CHANGELOG.md docs: security audit, README, changelog and screenshots; add real LocalAuthentication check
CLAUDE.md chore: bootstrap SP ID & Card Vault repository
project.yml chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
README.md chore: publish on SPB Git, keep App Store Connect key identifiers out of the repository
SECURITY.md docs: architecture, cryptography, threat model, backup format, design system, security policy
README.md View source

# 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
Wallet Card detail Full screen Security-code masking 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 .spvault files 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+.

bash
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 simulator

Installing 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

# Author

Simon-Pierre Boucher — Professor of Finance, Université du Québec en Outaouais (UQO) SP Boucher · https://spboucher.ai · https://git.spboucher.ai

Clone sp-id-card-vault

Anonymous clone and fetch. Pushing requires the owner's personal access token.

Snapshot of main

Files main
Menu

Theme