> ## Documentation Index
> Fetch the complete documentation index at: https://docs.burakov.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Encryption & privacy

> How Quietletter encrypts your content so only your recipient can read it, exactly what the server can and can't see, your account, and how to export or delete your data.

## What the server can and can't see

| The server can see | The server can never see |
| - | - |
| Your switches' **titles**, schedules, state, check-in and fire times, time zone | The **contents** of encrypted messages, files, secrets and private pages |
| **Recipients** — emails, names and phone numbers — and your warning phone | Any **passphrase** |
| Which **actions** a switch has, message **subjects**, file **names, types and sizes** | The decryption key in usable form |
| **Readable messages** — the ones you chose to deliver as normal email | |

In one line: **we can see *that* a switch exists, who it's for and *when* it fires — never what's
inside an encrypted item.**

## How the encryption works

**1. Encrypted on your device**

When you save an encrypted item, your device encrypts it with a fresh random key
(XChaCha20-Poly1305). That key is itself locked with a key derived from the item's **passphrase**
(Argon2id). What's uploaded is the ciphertext, the locked key and the values needed to unlock it
— never the passphrase or the readable content.

**2. Share the passphrase out-of-band**

You give the passphrase to your recipient **outside the app** — in a will, a sealed envelope, or
in person. We never see it, so we can't lose it or hand it over.

**3. Your recipient decrypts in their browser**

When the switch fires, your recipient opens their link and enters the passphrase. Decryption
happens **entirely in their browser**.

Once saved, encrypted content can't be read back — not even by you. That's the point.

> [!WARNING]
>
> **Use long passphrases.** The app requires at least 12 characters and rates each passphrase as you
> type. The locked key is stored on the server (and in your export files), so a weak passphrase could
> be guessed by anyone who obtained that data. And if a passphrase is lost, the content can't be
> recovered by anyone.

## Readable messages

Not everything has to be encrypted. A **Message** is delivered as a normal readable email by default,
clearly labelled *Delivered as a normal email — not encrypted*. Switch it to **Encrypted** if it
matters. Files, secrets and private pages are always encrypted.

## Your account

* **Sign in** with your email and a 6-digit code (valid for 10 minutes). After five wrong codes, the
  app makes you wait five minutes.
* Your **account is always recoverable by email**, independently of any passphrase — forgetting a
  passphrase never locks you out of *managing* your switches, only out of reading that encrypted
  item.
* **Lock the app** on iPhone and Android with **Settings → Privacy & security → Lock with Face ID /
  fingerprint**: it asks when the app opens and after 5 minutes in the background. The check is done
  by your phone — nothing about your face or fingerprint reaches us.
* **Log out** removes the app's data and your check-in PIN from that device. Your switches stay on
  the server and keep running.

## Export or delete your data

Both are in the app — **Account → Account settings** (hosted only) — and in your account on
burakov.net — **Account → Data & deletion**:

* **Export my data** in the app gives you one file with your account and your Quietletter data; on
  burakov.net, **Export your data → Download my data** gives you one file with your data from every
  app. Either file holds your switches, recipients and encrypted payloads exactly as stored. To move
  switches to another Quietletter, use [Back up and move your switches](https://docs.burakov.net/quietletter/backup-and-transfer.md) instead.
* **Delete account** (in the app) or **Delete my account** (on burakov.net) signs you out at once. You can restore the account within **30 days** by
  signing in again; after that, everything is erased.

> [!WARNING]
>
> **Deleting your account stops your switches.** From that moment they no longer warn or fire — your
> recipients will receive nothing. If you restore the account, they stay **Paused** until you re-arm
> each one in the app. Deleting the account also doesn't cancel an App Store or Google Play
> subscription; cancel it there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.