v0.9.4 · Android · iOS · Linux

Two devices. One socket. Nothing in between.

Knock opens a single encrypted connection between you and one other person. Keys are generated on your device, held in memory, and zeroed when you close the app. There is no account to create and no server holding a copy.

AGPL-3.0 · reproducible builds · no analytics SDK

What each app keeps on its servers

Most messengers are server applications with a client attached. Knock is a client with nothing behind it. Here is the difference, stated plainly.

Data Knock Signal WhatsApp Telegram
Account required None Phone number Phone number Phone number
Message stored on provider's server Never Until delivered Until delivered Until deleted
Contact graph on provider's server None Encrypted hashes Contact list Contact list
Provider can see who you talk to No provider Metadata only Metadata only Metadata only
Works on a LAN with no internet Yes No No No
Client source code Open Open Closed Partly open

How a message moves

Four steps. Each one discards the material the previous step produced, so there is nothing left to hand over afterward.

  1. 01

    Discover

    Both peers publish a signed address record to a Kademlia DHT. Records expire after twenty minutes and are re-signed. There is no directory server to seize because there is no directory server.

    Kademlia DHT
  2. 02

    Handshake

    X25519 exchange over the direct socket. Both sides derive the same session key independently. The key itself never crosses the wire, so recording the handshake gets an observer nothing.

    X25519 · HKDF-SHA256
  3. 03

    Send

    The payload is sealed with XChaCha20-Poly1305 and a fresh nonce. The ratchet throws away the previous key the moment the message is sealed, which means a stolen key opens exactly one message.

    XChaCha20-Poly1305
  4. 04

    Erase

    Closing the session zeroes key material in memory. Nothing is written to disk and there is no history to sync, so a later device unlock finds an empty space where the conversation used to be.

    Memory only

What the wire carries

Two ways a Knock connection can be routed. In both, the payload is unreadable to anything that forwards it.

UDP  192.0.2.14:51820  →  198.51.100.7:51820
frame length  412 B
cipher        XChaCha20-Poly1305

header        none
sender        none
recipient     none
timestamp     none
body          9f 3a 11 c9 0d 7e 42 b8
              a1 55 2e 70 cb 08 f3 6d
              ... 396 B ciphertext

When both peers have a usable route, Knock talks to them directly. The only thing a network observer learns is that two IP addresses exchanged a fixed-size burst of noise.

What Knock doesn't do

A privacy tool that only lists its strengths is a marketing page. These are the boundaries, in the order people usually hit them.

It doesn't hide that you are online from your network operator
Traffic analysis is real. A direct connection shows two IP addresses talking to each other, even when the contents are unreadable. If that is part of your threat model, route Knock over Tor. The app supports it, and it will be slower.
It doesn't survive a compromised device
Keys live in memory while the app is open. Malware running with the right privileges can read them. No messenger fixes this, and any app claiming otherwise is describing a threat model it cannot actually deliver.
It doesn't keep history
Close the session and the conversation is gone. There is no backup, no export, no restore from another device. Some people find this a dealbreaker, which is a reasonable thing to decide after reading this paragraph.
It doesn't do group chats
Two peers, one socket. Groups need a shared key, and shared keys leak over time as members leave or devices change hands. We haven't shipped it, and we won't ship it without a ratcheting design that handles removal properly.

Install

Builds are reproducible. Verify the checksum before you run anything. Signing keys rotate every six months and the old ones stay published.

Platform Package Size SHA-256
Android 10+ knock-0.9.4-arm64.apk 24.1 MB 4f2a91c9…7e0b
iOS 15+ TestFlight build 941 — managed by Apple
Linux x86_64 knock_0.9.4_amd64.deb 8.7 MB b31d0e77…c4a2
Source git.knock.chat/knock · tag v0.9.4 — signed, AGPL-3.0
Hosted on VibeDeploy