How encryption works
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
Encryption happens on your server, before the data leaves. Only bytes we can't read ever reach ganyant.
Step by step
- Dump of the database or folder, with the official tool.
- Compression with Zstandard (level 9).
- Encryption with XChaCha20-Poly1305 (libsodium secretstream). The 256-bit key is derived from your passphrase with Argon2id and a random salt that’s different for every snapshot.
- Fingerprint: BLAKE2b-256 of the whole encrypted file.
- Upload straight to storage with a signed URL that lasts 15 minutes and only accepts the exact declared size.
What we know and what we don’t
| We have | We don’t have |
|---|---|
| The encrypted file | Your passphrase |
| Its size and fingerprint | Your database passwords |
| The date and the job | The contents |
So nobody can decrypt your backups without your passphrase, not even us, even if someone got into the storage.
The passphrase
The installer generates a random one and stores it in agent.toml, under [vault] passphrase.
- Keep it in a password manager. If you lose both the server and the passphrase, the backups can’t be recovered.
- If you reinstall the server, copy the same passphrase into the new
agent.tomlso you can restore older snapshots. - If you change it, new snapshots use the new one and old ones still need the previous one.
Verification on restore
Before decrypting, the agent recalculates the BLAKE2b and compares it with the stored one. If they don’t match, it stops without writing anything. Authenticated encryption also detects any modified byte.
Open code to review
The agent is a single readable Python file: ganyant_agent.py. You can check exactly how it encrypts before installing it.