# Architecture
This document describes Mini Diarium's high-level architecture and data flow.
- For principles and design philosophy, see [PHILOSOPHY.md](../PHILOSOPHY.md).
- For the full threat model and cryptographic details, see [SECURITY.md](../SECURITY.md).
- For a privacy overview, see [docs/PRIVACY.md](PRIVACY.md).
## Unlock Model
Mini Diarium uses a wrapped master key design.
- A random master key encrypts all entries using AES-256-GCM
- Authentication methods wrap the master key
- Unlocking unwraps the master key into memory for the session
## Unlock Flow