Gehlvora DocsTact-VC gehlvora.com

Tact-VC / Technical explanations / Encryption

Encryption of calls and messages

The Noise IK protocol behind every Tact-VC connection, what it encrypts and how it authenticates both sides.

Every connection between two Tact-VC apps is an encrypted session built with the Noise protocol framework, the same design WireGuard uses. Both sides prove who they are in the first round trip, and everything after the packet header is encrypted: audio, video, chat, files, names, pictures and control messages.

How it works

  1. Handshake start. The calling app already knows the other side's public key from the friend code. It sends the first handshake message, which carries its own public key encrypted to that key, plus a timestamp.
  2. Handshake answer. The other app decrypts it, checks that the caller is allowed to connect, and answers. Both sides now share session keys derived from their long-term keys and fresh one-time keys.
  3. Confirmation. The answering app starts sending only after the first data packet from the caller arrives, so a replayed handshake start never gives anyone a working session.
  4. Data. Each packet is encrypted and authenticated with ChaCha20-Poly1305 and numbered. Packets with a number already seen, or too old for the window, are dropped.
  5. Re-keying. The app that started the session makes a new one every 10 minutes. Each new session first runs a post-quantum key exchange (see Post-quantum protection).

A handshake start that isn't encrypted to your key can't be read, and Tact-VC doesn't answer it. To anyone without your friend code, the port looks closed.

Values

ItemValue
ProtocolNoise_IK_25519_ChaChaPoly_BLAKE2s, and Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s with the post-quantum key
Prologuetact-vc/1
Key exchangeX25519
CipherChaCha20-Poly1305, 16-byte tag
HashBLAKE2s
Re-keyevery 10 minutes
Replay window1,024 packets
Old handshake startsignored unless their timestamp is newer than the last accepted one from that key
Session ends after35 seconds of silence (6 seconds in a call)

Specification: The Noise Protocol Framework.

What others can see

  • The network sees the packet header: a type byte, session numbers and a packet counter (see What your network provider can see). Not your public key: in the first message it is encrypted.
  • Someone who knows your friend code can complete a handshake with you, but can then only send a friend request (see What a stranger can do).
  • Blocked keys get no answer at all, so to them you look offline.

Limits

  • Your friend's app sees everything in clear. End-to-end means between apps, not beyond what the other person's computer does with it.
  • Authentication is only as good as the key exchange. If a friend code was swapped on the way, you're securely connected to the wrong key. Compare the Safety fingerprint to rule this out.
  • The header and packet sizes aren't hidden. See What the shape of your traffic reveals.

How to check it

In a packet capture, filter for UDP on Tact-VC's port (Settings → Network → UDP port, default 47100). Only the first byte (0xA1–0xA4) and the numbers after it are readable.

Related: Post-quantum protection, Forward secrecy.

Updated