Skip to content
markksantosPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🔐 VaultApp

VaultApp icon

Encrypted file vault for macOS with AES-256, Touch ID, and Finder integration

Swift SwiftUI macOS

Features · Getting Started · Tech Stack


✨ Features

  • AES-256-GCM Encryption — Industry-standard authenticated encryption for all vault contents
  • PBKDF2-HMAC-SHA256 KDF — 600,000 iterations; per-vault random 32-byte salt; HMAC-protected header
  • Touch ID Unlock — Biometric authentication via Keychain integration
  • Recovery Codes — One-time recovery code generated at creation to regain access
  • Panic Lock — Global hotkey (⌘⇧L) for instant emergency vault locking
  • Secure Delete — 3-pass overwrite (random → zeros → random) before file removal
  • Auto-Lock — Configurable triggers: timed intervals, screen lock, or system sleep
  • Finder Integration — Right-click "Add to Vault" context menu via FinderSync extension
  • Drag-and-Drop — Add files by dragging into the vault window
  • Rate Limiting — Escalating lockout delays after failed password attempts
  • Folder Organization — Hierarchical folder structure within vaults with search and preview
  • ZIP Export — Export decrypted contents to a standard (unencrypted) ZIP for offboarding

🚀 Getting Started

Prerequisites

  • macOS 14.0+
  • Xcode 15+ (built and tested with Xcode 26)
  • Swift 5.9+
  • XcodeGen (brew install xcodegen) to generate the app project

Build the core + run tests (Swift Package Manager)

The encryption engine, models, services, and SwiftUI views build and test as a Swift package. This is the fastest inner loop:

git clone https://github.com/markksantos/VaultApp.git
cd VaultApp
swift build
swift test

Build the full app + Finder extension (Xcode)

SPM cannot bundle a macOS .app or embed an app extension, so the shippable app is described by project.yml and generated with XcodeGen:

xcodegen generate          # creates Vault.xcodeproj from project.yml
open Vault.xcodeproj        # build & run the "Vault" scheme

# or from the command line (unsigned local build):
xcodebuild -project Vault.xcodeproj -scheme Vault \
  -configuration Debug -destination 'platform=macOS' \
  CODE_SIGNING_ALLOWED=NO build

Vault.xcodeproj is generated and git-ignored; project.yml is the source of truth. The Finder Sync extension (VaultFinderExtension.appex) is embedded into Vault.app/Contents/PlugIns. After installing the app, enable the extension in System Settings → Privacy & Security → Extensions → Added Extensions, and grant Accessibility permission for the global panic-lock hotkey.

🛠️ Tech Stack

Category Technology
Language Swift 5.9
UI SwiftUI + AppKit
Encryption CryptoKit (AES-256-GCM)
Key Derivation CommonCrypto (PBKDF2-HMAC-SHA256, 600K iterations; Argon2id slot reserved, not yet implemented)
Biometrics LocalAuthentication (Touch ID)
Keychain Security framework
Architecture MVVM with @Observable
Build Swift Package Manager

📁 Project Structure

Vault/Sources/
├── App/
│   └── VaultApp.swift                 # Entry point & AppDelegate
├── Models/
│   └── VaultModels.swift              # Core data models & protocols
├── Encryption/
│   ├── VaultEngine.swift              # Main encryption engine
│   ├── VaultContainer.swift           # Custom binary container format
│   ├── AESEncryptor.swift             # AES-256-GCM implementation
│   ├── KeyDerivation.swift            # PBKDF2 key derivation
│   ├── KeychainManager.swift          # Keychain + Touch ID
│   └── SecureMemory.swift             # Memory locking & zeroing
├── Security/
│   ├── PanicLockManager.swift         # Global hotkey emergency lock
│   ├── AutoLockManager.swift          # Timed/event auto-lock
│   └── RateLimiter.swift              # Brute-force protection
├── Services/
│   ├── SecureDeleteService.swift      # 3-pass secure file wipe
│   └── TempFileManager.swift          # Temp file cleanup
└── UI/
    ├── Views/
    │   ├── LockScreenView.swift       # Password/Touch ID unlock
    │   ├── UnlockedVaultView.swift     # File grid/list browser
    │   └── VaultCreationWizard.swift   # Multi-step vault setup
    └── ViewModels/
        └── VaultViewModel.swift        # Main view model

📄 License

MIT License © 2025 Mark Santos

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages