Gehlvora DocsTact-VC gehlvora.com

Tact-VC / Technical explanations / Data on your computer

The backup file

What a Tact-VC backup contains, how it's encrypted, and how strong its passphrase needs to be.

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

  1. You type a passphrase in Settings → Storage → Backup and save.
  2. Tact-VC derives a key from it with Argon2id, which is slow and needs a lot of memory on purpose, so guessing is expensive.
  3. It encrypts the contents with ChaCha20-Poly1305. The header, including the Argon2id cost, is authenticated too, so it can't be altered unnoticed.
  4. 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

ItemValue
Containsprivate key, name, picture, friends with their keys and addresses, friend requests you sent that are still open, blocked keys
Doesn't containchats, groups, settings, requests you received, supporter key
File starts withTACTVCBAK2 (older backups: TACTVCBAK1, still read)
Key derivationArgon2id, 64 MiB memory, 3 passes, 1 lane, 16-byte salt; older backups 19 MiB, 2 passes
EncryptionChaCha20-Poly1305, 12-byte nonce
Passphraseat 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.

Updated