Security Overview
How Docket protects your data.
Security Model
Docket is designed with security as a core principle:
| Feature | Protection |
|---|---|
| At Rest | AES-256 encryption for all user data |
| In Memory | Keys wiped on lock or USB disconnect |
| In Transit | Local inference — data never leaves device |
| Password | Argon2id key derivation (memory-hard) |
What's Protected
When encryption is enabled:
| Data | Storage | Protection |
|---|---|---|
| Chat messages | SQLite database | SQLCipher encryption |
| API keys | Database | SQLCipher encryption |
| User files | Individual files | AES-256-GCM per-file |
| File metadata | Database | SQLCipher encryption |
| Chat images | Individual files | AES-256-GCM per-file |
| Settings presets | Database | SQLCipher encryption |
What's Not Encrypted
Some data is intentionally unencrypted:
| Data | Reason |
|---|---|
| AI models | Too large, can be re-downloaded |
| App preferences | UI settings only (theme, etc.) |
| Model registry | Non-sensitive metadata |
| Exported files | Intentionally unencrypted for sharing |
Encryption Modes
Encrypted Mode (Recommended)
- All sensitive data encrypted with your password
- Vault must be unlocked to access data
- USB disconnect automatically locks vault
- Strongest protection for your data
Unencrypted Mode
- Data stored in plaintext
- No password required
- Convenient for non-sensitive use cases
- Faster performance (no encryption overhead)
You can switch between modes at any time in Settings.
Key Security Features
Offline-First
Local AI models work without internet. Your conversations:
- Never leave your device
- Are not sent to cloud servers
- Remain completely private
Network Control
A global toggle controls all network access:
- Off (default) — No external connections
- On — Enables API models and downloads
Automatic Lock
Your vault is automatically locked when:
- You click the lock button
- The USB drive is disconnected
- The app is closed
Memory Protection
When locked:
- Encryption keys are wiped from memory
- Decrypted content is cleared from the interface
- All sessions are invalidated
Learn More
- Encryption Details — Technical details
- Vault Management — Lock/unlock operations
- Network Control — Internet access settings