Updated 25 November 2026
Security
This page describes how Knock actually protects your conversations today, and where those protections stop. It's written to be checked against the code, not to sound reassuring. If a claim here is ever wrong, please tell us. To report a vulnerability, email knock@cykor.net with "Security" in the subject.
End-to-end encrypted
- Messages, photos, videos, voice messages, files
- Reactions, replies, edits, stickers, link previews
- Call audio (between the two phones)
- Your private keys never leave your phone
What the server needs to deliver
- Who a message is for and when — the address on the envelope
- Your profile: username, name and photo
- A group’s name, its photo (like a profile photo) and who’s in it — to reach everyone
- Online status and read receipts — only if you leave them on
Not protected against
- A compromised phone or malware on it
- Someone photographing your screen
- A person in between, if you never compare security codes
- No independent security review yet
On this page
- How it works, step by step
- What is end-to-end encrypted
- Encryption is per device, not per account
- Groups
- Verifying who you're talking to
- Sync between your own devices
- How a device is linked and history moves
- Encrypted storage on your device
- What Knock's server cannot see
- What Knock's server can see
- What is public or not end-to-end encrypted
- How encrypted media works
- Link previews
- How voice and video calls are protected
- Notifications
- Importing stickers from Telegram
- Presence and read receipts
- App lock, content protection and personal conversations
- Recovery key
- Backups
- Limitations
- Open-source components
How it works, step by step
Here is what happens to a message, from the moment you install Knock to the moment a friend reads it.
- Keys are made on the phone. When it registers, the device generates its own identity key, a signed key and a supply of one-time keys, post-quantum ones (ML-KEM) included. Only their public halves go to Knock's server. Private keys never leave the phone.
- The first message sets up a session. Your phone fetches the public keys of each of your friend's devices and agrees a shared secret with each of them using PQXDH. The server passes the keys along but cannot compute the secret.
- Every message gets a new key. From then on keys move forward with every message (Double Ratchet with the SPQR post-quantum extension). A key stolen today can't decrypt earlier messages, nor — after a few exchanges — later ones.
- One copy per device. The message is encrypted separately for each of your friend's devices and for each of your other devices. The server receives a set of encrypted "envelopes" and puts each in its device's queue.
- Delivery without content. If your friend's device is offline, the server sends a notification through Apple or Google — without the message text (see Notifications). Once the app opens, it collects its envelopes in order.
- Decryption on your friend's phone. Their device decrypts the envelope with its session key, confirms delivery and stores the message in the encrypted database on the phone. Files travel separately under keys of their own (see How encrypted media works).
At no point on this path does the server hold a key that can read the content.
What is end-to-end encrypted
Encrypted on your device before it ever reaches Knock's server, and readable only by the devices in the conversation:
- message text, including mentions in groups;
- photos, videos, voice messages, video notes and files (each with its own random encryption key);
- stickers you send, including the ones you make yourself, and link previews;
- reactions, replies, edits, deletions, pins and the content-protection switch — these travel as ordinary encrypted messages, marked so they don't trigger a notification;
- the history entry of a call in your chat.
Encryption uses libsignal, the open-source implementation of the Signal Protocol maintained by Signal Messenger: PQXDH session setup (including one-time post-quantum ML-KEM/Kyber prekeys) and the Double Ratchet with SPQR, Signal's post-quantum ratchet extension. Knock does not implement its own cryptographic primitives.
Encryption is per device, not per account
Every device you sign in on has its own encryption keys and its own encrypted session with every other device in a conversation. There is no shared account key. A message is encrypted separately for each of your friend's devices, and for your own other devices.
Groups
Group messages use the same one-to-one sessions: a message to a group is encrypted separately for every device of every member. There is no group key on the server. The group's structure, however, is server-visible metadata, because without it the server can't know who to deliver to: its name, its photo (stored like a profile photo, not end-to-end encrypted), who is a member and their role, and the history of changes (who added or removed whom, renamed it, and when). Groups have at most 32 members.
Verifying who you're talking to
Every device has its own identity key, and Knock remembers the key of each of your friends' devices the first time it sees it. If a friend's key changes later, Knock tells you and holds that device's messages until you confirm. To make sure nobody is in between from the start, compare security codes on the friend's profile — the Signal safety number for your phone and theirs, as 60 digits or a QR code — and mark them as verified. Until you do, a device is trusted the first time you talk to it, which is a known limit of any messenger without such a check.
Linking a new device to your account requires approving it on a device you're already signed in on, after both screens show the same confirmation code.
Sync between your own devices
There is no account-wide key, so sync is not "a copy on the server". It is the same encrypted messages, also sent to your own devices:
- Messages, reactions, edits, deletions, pins and call entries are encrypted separately for each of your devices. Each device collects its own queue, so an offline device holds nobody up and catches up when it comes back.
- What you've read syncs as a position in the conversation: read it on one device and it stops showing as unread on the others.
- Your private touches — the names and notes you give contacts, chat looks and photo wallpapers, imported sticker packs — move between your devices through a hidden encrypted channel that only your account's devices can use. The server only sees that an exchange happened.
You decide which devices belong to your account, not the server. Your primary phone creates an account key (Ed25519) whose private half never leaves it, and signs the list of your devices with it. The people you talk to check that signature: a device missing from the signed list gets no messages, and its messages are not decrypted. So the server can't quietly "add" a device to your account. If a friend's account key changes, Knock tells you.
Some settings, such as sounds or the app lock, stay per device. The app lock is off on a newly linked device.
How a device is linked and history moves
Linking a new device and moving to a new phone use one protocol:
- The new device makes a one-time key pair (X25519) and shows the public key in a QR code. The camera is a channel the server never sees, so it can't swap that key.
- The old device scans it and both derive the channel keys (HKDF-SHA256). A six-digit code derived from them shows on both screens: if they match, nobody is in the middle.
- Once you approve, the old device packs the history — conversations, contacts, media, stickers — and encrypts it in parts (AES-256-GCM, a fresh key each time). Knock's server is only a relay: it passes along ciphertext and sees nothing but sizes.
- The new device decrypts the history into its own encrypted database, under its own key.
Signal private keys are not copied: the new device makes its own, and the people you talk to set up new sessions with it, as with any new device. When you link, the old device stays on your account. When you transfer, the new phone becomes active and the old one is revoked in a single step on the server, so there are never two "real" phones at once. This works between iPhone and Android too.
Encrypted storage on your device
Decrypted messages, and all of your private encryption key material, are stored in a local database encrypted at rest (SQLCipher, AES-256). The database key is generated on your device and held by the iOS Keychain or Android Keystore — never sent to Knock's server, never included in the database file itself. If that key can't be read or doesn't unlock the database, Knock fails closed: it will not silently store anything unencrypted. Downloaded media is cached encrypted, too.
What Knock's server cannot see
The content of your messages, photos, videos, voice messages, video notes, files and the stickers you send; the content of your reactions, replies, edits and deletions (including which message they refer to); the links you share and their previews; and your calls' audio. Your private encryption keys and session state never leave your device.
What Knock's server can see
Knock's server works like the post: it sees who an envelope is addressed to, but it can't open it. To deliver messages it processes the data below — and each item is there for a specific reason:
- your profile — username, display name and, if you add one, a photo — so friends can find and recognise you;
- your devices and their public keys — so people can encrypt messages separately for each of your phones. A public key can't be used to read anything;
- who a message is for, and when it was sent — the address and postmark on the envelope: without them a message can't arrive or take its place in the conversation. The server also knows whether a conversation is a personal one, so it stays hidden on both phones and in notifications;
- a group's name, its photo (like a profile photo), members and their roles — so each message reaches every member and everyone sees the same group (see Groups);
- the size of an encrypted message or file — to store and deliver it. Sizes are padded to standard values, so the exact length of a text isn't visible;
- "delivered" and "read" marks — to show them to you; read receipts can be turned off. Typing is only passed to the other person in the moment and never stored;
- whether you're online and when you were last seen — only if you allow it; you can turn it off;
- a knock — to deliver it to your friend; kept only briefly;
- during a call — who is calling whom and which device answered, so the call rings on the right phone. This is kept only in memory and is gone within an hour after the call ends; it is never written to the database, and the audio is never recorded at all;
- your privacy settings, block list and muted chats — so the server can apply them, for example by not delivering messages from someone you blocked. Only you see your block list;
- your IP address — briefly, to protect against spam and attacks; it isn't written to logs.
This metadata isn't the content of your conversations, but it isn't end-to-end encrypted either — which is why we list it honestly.
What is public or not end-to-end encrypted
- Profile and group photos are stored as plain image files, readable by Knock's server and its storage host. They're optional; removing one deletes the stored file.
- Published sticker packs are public by design: anyone with the link can see the pack, its stickers, name and author. Stickers you only send in chats stay end-to-end encrypted.
- Your Knock Code is a public link to your public profile (username, display name, photo). You can reset it at any time.
How encrypted media works
Photos, videos, voice messages and files never travel inside a message the way text does. Each file is encrypted on your device with its own random key using authenticated encryption (AES-256-GCM, in a streaming construction, so a whole file is never held unencrypted in memory), then uploaded as an opaque encrypted blob. The key itself travels only inside the encrypted message content — the server never has it and never sees the file's real contents, name, or type.
Link previews
A link preview is made by the sender's phone while they write, and travels inside the encrypted message. The recipient's phone never contacts the linked site to show it. The linked site does see the sender's IP address and the time of that fetch, as with any visit — and nothing that identifies Knock or the sender's account.
How voice and video calls are protected
Call audio and video use WebRTC's standard media encryption, DTLS-SRTP, end to end between the two phones: Knock's server never receives them, and Knock's relay (TURN) server, used when the phones cannot connect directly, only forwards encrypted packets. The call setup — including the keys' fingerprints and the phones' network addresses — is end-to-end encrypted with the same Signal Protocol sessions as your messages, so our server connects the call without being able to listen or to place itself in the middle. The audio itself is not "encrypted with the Signal Protocol": it is DTLS-SRTP, authenticated through those Signal sessions. Calls are never recorded. A direct call can reveal your IP address to the other person; "Always relay calls" in Privacy settings prevents that.
The fingerprint of the certificate a phone protects the call with is sent to the other side only inside a Signal-encrypted message addressed to one specific device, and the phone refuses a connection from anyone whose certificate doesn't match it. So a call — video included — is authenticated by the same Signal session as your messages, not merely "encrypted in transit".
Notifications
Notifications come through Apple (APNs) and Google (FCM) — otherwise a phone can't learn about a new message while Knock is closed. Knock's server sends them directly, with no third-party push service in between. A notification never contains the message text: the server doesn't have it. By default it says something like "New message" and carries the conversation's id, so a tap opens the right chat.
If Show names is on for a device, the server adds the sender's name to the notification — Apple or Google and the lock screen then see it too. Either way, Apple and Google see when notifications reach your device. Push tokens are stored encrypted on the server and never logged.
Importing stickers from Telegram
To import a pack, Knock's server downloads it from Telegram and converts it to Knock's format. So the server learns that your account imported a particular public pack, but stores nothing about it and writes no log line. Telegram only sees that Knock's server fetched the pack — not you. After the import the pack lives on your phone, and stickers sent from it are encrypted like any other: the recipient learns neither the pack's name nor its link.
Presence and read receipts
Seeing when someone's online, and read receipts, both depend on the server knowing your state — they are not, and cannot be, end-to-end encrypted the way message content is. Both are reciprocal and controllable in Settings: if you turn off sharing your presence, you stop seeing everyone else's too; the same is true for read receipts. Either is visible only to people you already share a conversation with.
App lock, content protection and personal conversations
These protect against people around you, not against Knock's server — and none of them adds encryption. Messages are encrypted the same way whether they're on or off.
- App lock asks for Face ID, Touch ID, a fingerprint or the phone's passcode before Knock opens. The check is done by the phone's operating system; Knock only learns whether it succeeded.
- Content protection makes the Knock apps block screenshots, screen recording, forwarding, copying and opening files elsewhere in that conversation. It is enforced by the app, not by cryptography: it can't stop a photo of the screen taken with another device, or a modified app.
- Personal conversations are hidden from your chats, search and notifications and open only with a personal code. Your phone keeps only a salted hash of that code; it is never sent to Knock's server.
Recovery key
The recovery key is generated on your phone. Knock's server stores only a hash of a value derived from it — never the key itself — so the server can check a recovery attempt but can't recover your account on its own. Recovery restores your account and chats list; it can't restore messages, because no readable copy of them ever existed on the server.
Backups
Server backups contain the same data described above — usernames, conversation membership, timestamps, ciphertext — never readable message content or private keys. They are still sensitive (they reveal who talks to whom, and when) and are treated and protected accordingly. Knock keeps no backup of your chat history on its server. History moves only directly from device to device, by linking a new device or transferring to a new phone (see How a device is linked and history moves). If you lose every device that held your keys, that conversation history cannot be recovered by Knock or anyone else.
Limitations
Read this section as carefully as the rest:
- Knock's encryption implementation has not had an independent security review;
- if you don't compare security codes, a new device is trusted the first time you talk to it (see Verifying who you're talking to);
- metadata — who you talk to, when, and your groups' structure — is visible to Knock's server, as described above;
- a compromised device, or malware on it, is outside what any of this protects against.
Knock does not describe itself as "unbreakable," "zero-knowledge," or as strong as any specific other messenger. Those words don't hold up to scrutiny, and we'd rather be checked than sound impressive.
Open-source components
Knock's encryption relies on open-source software, including libsignal (licensed AGPL-3.0-only) and SQLCipher. An in-app open-source notices screen is planned; until then, the license texts are available on request at knock@cykor.net.