Offline-First Design
TorrinPass is built with an offline-first architecture, meaning your passwords are always available—even without an internet connection.
What is Offline-First?
Section titled “What is Offline-First?”Offline-first means:
- All data is stored locally on your device
- The app works 100% without internet
- Cloud sync happens in the background when connected
- Local data is the source of truth
This is different from apps that cache data for offline use. TorrinPass is designed from the ground up to work offline.
How It Works
Section titled “How It Works”Local Storage: Core Data
Section titled “Local Storage: Core Data”TorrinPass uses Apple’s Core Data framework for local storage:
Your Passwords (encrypted) ↓Core Data (SQLite database) ↓Stored on your device ↓Always available, always fastCloud Sync: Firebase Firestore
Section titled “Cloud Sync: Firebase Firestore”When you’re online, TorrinPass syncs with Firebase Firestore:
Local Changes → Encrypted → Uploaded to CloudCloud Changes → Downloaded → Decrypted LocallyConflict Resolution
Section titled “Conflict Resolution”If you make changes on multiple devices while offline:
- TorrinPass detects the conflict
- Most recent change wins (by timestamp)
- No data is lost—older versions are preserved
Benefits of Offline-First
Section titled “Benefits of Offline-First”Always Available
Section titled “Always Available”- No internet? No problem. Access all your passwords anytime.
- Airplane mode — Works perfectly
- Poor signal areas — No waiting for network
- International travel — No roaming needed
Faster Performance
Section titled “Faster Performance”- Instant access — No network latency
- Immediate search — Local database queries
- Quick copy — No waiting for server response
Better Privacy
Section titled “Better Privacy”- Less network traffic — Fewer opportunities for interception
- Local encryption — Data encrypted before any sync
- Reduced attack surface — Less reliance on cloud services
Reliability
Section titled “Reliability”- Server outages don’t affect you — Your passwords are local
- No dependency on internet — Critical for emergencies
- Works everywhere — Basements, planes, remote areas
Sync Behavior
Section titled “Sync Behavior”When Online
Section titled “When Online”- Automatic sync — Changes sync in the background
- Pull-to-refresh — Manually trigger sync
- Real-time updates — Changes from other devices appear quickly
When Offline
Section titled “When Offline”- Full functionality — Create, edit, delete passwords
- Changes queued — Modifications saved locally
- Auto-sync on reconnect — Everything syncs when back online
Sync Indicators
Section titled “Sync Indicators”TorrinPass shows clear indicators:
- ✅ Synced — All changes uploaded
- 🔄 Syncing — Upload in progress
- ⚠️ Pending — Changes waiting for connection
Technical Details
Section titled “Technical Details”Core Data Schema
Section titled “Core Data Schema”PasswordMO (Managed Object)├── id: UUID├── encryptedPayload: Data // AES-256-GCM encrypted├── websiteHint: String // For display (not sensitive)├── usernameHint: String // For display (not sensitive)├── createdAt: Date├── updatedAt: Date├── isFavorite: Bool├── tags: [String]└── syncStatus: SyncStatusFirestore Structure
Section titled “Firestore Structure”users/{userId}/├── passwords/{passwordId}│ ├── encryptedPayload: Blob│ ├── websiteHint: String│ ├── usernameHint: String│ ├── updatedAt: Timestamp│ └── ...└── metadata/ └── lastSyncTimestamp: TimestampBidirectional Sync
Section titled “Bidirectional Sync”- Upload — Local changes → Firestore
- Download — Firestore changes → Local
- Merge — Conflict resolution by timestamp
Comparison with Competitors
Section titled “Comparison with Competitors”| Feature | TorrinPass | 1Password | Dashlane |
|---|---|---|---|
| Offline Access | ✅ Full | ✅ Full | ⚠️ Limited |
| Local Storage | Core Data | SQLite | Varies |
| Offline Editing | ✅ Yes | ✅ Yes | ⚠️ Read-only |
| Sync on Reconnect | ✅ Auto | ✅ Auto | ✅ Auto |
Use Cases
Section titled “Use Cases”Travel
Section titled “Travel”- Access passwords on flights
- No roaming charges needed
- Works in remote locations
Emergencies
Section titled “Emergencies”- Power outages (phone still works)
- Network failures
- Critical password access when needed most
Privacy-Conscious Users
Section titled “Privacy-Conscious Users”- Minimize cloud interactions
- Reduce network exposure
- Keep data local as much as possible
Get Started
Section titled “Get Started”Experience true offline-first password management. Download TorrinPass today.