A backup holds your private key, name, picture and friends. Anyone with the file and its passphrase can be you in Tact-VC. The file is encrypted with a key derived from the passphrase, so its safety depends almost entirely on how hard that passphrase is to guess.
How it works
- You type a passphrase in Settings → Storage → Backup and save.
- Tact-VC derives a key from it with Argon2id, which is slow and needs a lot of memory on purpose, so guessing is expensive.
- It encrypts the contents with ChaCha20-Poly1305. The header, including the Argon2id cost, is authenticated too, so it can't be altered unnoticed.
- Restoring checks the file first, then replaces the identity and friends on the next start. The replaced files stay in the data folder as
*.replaced-<time>until you delete them under Settings → Storage, which also removes the old key's Keychain entry.
Values
| Item | Value |
|---|---|
| Contains | private key, name, picture, friends with their keys and addresses, friend requests you sent that are still open, blocked keys |
| Doesn't contain | chats, groups, settings, requests you received, supporter key |
| File starts with | TACTVCBAK2 (older backups: TACTVCBAK1, still read) |
| Key derivation | Argon2id, 64 MiB memory, 3 passes, 1 lane, 16-byte salt; older backups 19 MiB, 2 passes |
| Encryption | ChaCha20-Poly1305, 12-byte nonce |
| Passphrase | at least 8 characters |
What others can see
Without the passphrase, someone who has the file sees only that it's a Tact-VC backup and its Argon2id cost. With the passphrase, they get your identity and friends list. They can then connect to your friends as you.
Limits
- The file can be attacked offline. Anyone with a copy can try passphrases without limit. Argon2id slows each guess down, but a short or common passphrase still falls.
- A backup can't be revoked. If one leaks with its passphrase, the only fix is a new identity.
- Restoring doesn't remove the old copy. Both computers then hold your private key. After moving, delete the data on the old computer (Settings → Storage → Delete all data).
How strong the passphrase should be
- Use at least 4 random words, or 12 or more random characters.
- Don't reuse a password from somewhere else.
- Keep the passphrase somewhere other than the backup.
Related: Backups, Where your private key is kept.