Khandaq

Privacy Policy

Last updated: 20 November 2026

Khandaq is a free, open-source, peer-to-peer messenger built on the Tox protocol. It is engineered so that we cannot read your messages even if we wanted to. This policy explains, in plain language, what that means.

The short version. No account. No phone number. No email. No advertising. No behavioural analytics. Your messages, calls, and files are end-to-end encrypted and travel directly between you and the people you talk to. Khandaq operates no central server that stores your conversations. The exceptions to “no servers” are notifications and desktop updates. Waking a phone requires Google’s push service and a small Khandaq wake relay, which see delivery data but never message content they can read (see Push notifications). The desktop app asks khandaq.org whether a new version is out, an anonymous request you can switch off (see Desktop updates). All of this is about the app. The website, khandaq.org, counts its visits with Yandex Metrica and Google Analytics, and only if you allow it (see This website).

What we do NOT collect

Data stored on your device

How the network works

Push notifications

Because Khandaq is peer-to-peer, no server is holding your messages and no server can tell your phone that one is waiting. To make notifications work at all, two things are involved.

The relay receives: the recipient’s push token (so it knows which device to wake), optionally the sender’s Tox public key (so the app can open the right chat; this is the public key only, not the full Tox ID), and the IP address of the sender’s device, as any web server would see. It does not receive message text it can read, files, call audio or video, or the recipient’s Tox identity.

From Android 0.2.64 and iOS 1.4.34 the sender’s app can seal a short preview into the wake: the first words of a message, or that it is a voice message, a video, a photo or a file (with the file’s name), or a reaction to one of your messages. It is encrypted on the sender’s device with ChaCha20-Poly1305 under a key that only your device and that contact hold: your phone keeps a secret that never leaves it and gives each contact, over the encrypted Tox link, a key derived from it for that contact alone. The relay, Google and Apple pass the preview on as ciphertext they cannot open; your phone opens it and shows who wrote and the preview, or only who wrote when message text in notifications is turned off. A wake from a contact on an older version, or one whose preview cannot be opened, carries a fixed title, “Khandaq”, and a fixed text, “New message”. Once the app has fetched and decrypted the message peer-to-peer it posts its own notification with the real sender and text, unless the preview has already shown it. On iOS, if the app was still running in the background, it then removes the generic wake banner, so you are left with the one contentful notification; if you had force-quit the app, the banner stays generic until you open Khandaq. On Android the generic banner is posted by Google’s messaging component under an identifier the app does not know, so the app cannot take it away; there you briefly see two notifications, the generic wake one and the contentful one, until you tap or dismiss them.

Your own wake address is a URL that contains your notification token, and your device sends it to your contacts over the encrypted Tox link, because their devices are the ones that have to wake yours. So each contact you add holds an identifier for your app installation, and your device in turn calls the wake addresses your contacts gave it. Both apps refuse to call anything outside a fixed list. That list is the Khandaq relay plus legacy relay addresses inherited from the upstream project the apps are built on: two of them on Android (tox.zoff.xyz and toxcon2020.zoff.cc) and one on iOS (tox.zoff.xyz). Those are only ever reached if a contact’s app handed you a wake address hosted there; Khandaq itself only ever issues addresses on its own relay. On Android you can additionally switch on a third-party push server (ntfy, UnifiedPush or Mozilla’s) in the settings; it is off unless you turn it on. The token changes if you reinstall the app or clear its data.

The relay keeps one piece of state: a truncated hash of the push token together with the time it last woke that device. This is used only to suppress duplicates: without it, a sender retrying delivery produces a stream of identical banners. These rows are deleted once they are older than 24 hours, are not linked to an account or a Tox ID, and are not used for statistics. A wake that carries a preview is de-duplicated per event instead: the relay keeps a truncated hash of the push token with a hash of the event id the sender attached, for at most six hours, so that a retry of the same event does not show the same preview twice. Separately, the relay’s web server writes ordinary access logs (the calling IP address, the time, the request and its result), as any web server does. The server is configured to strip secret parameters out of the logged line. From Android 0.2.42 and iOS build 142986 the apps send the wake as a POST whose body carries the token and whose signature travels in a header, so the token is not part of the request line a web server writes down at all. Installations still on an older build use the earlier form, where the token and the sender’s public key sit in the URL and therefore do appear in that log line; that endpoint is scheduled for retirement and the schedule is published in the project repository. These logs are rotated off the server in the normal course, are never joined to the wake table, and are used only for fault-finding and abuse handling.

You can turn notifications off at any time in your device’s system settings.

Desktop updates

The desktop app for Windows, macOS and Linux checks whether a newer version is out: a few minutes after it starts, and then once a day (an hour later, if a check did not go through). It downloads two small files from khandaq.org, a description of the latest desktop release and its signature. The request is anonymous: it carries no account, no Tox ID, no contact and no identifier of your device, and it names the app only as “Khandaq”, without its version. Like any website, khandaq.org sees the IP address the request comes from (your proxy’s, if you set one in the app) and when it came. The visit statistics of the website play no part in it: the app fetches two files, not a page.

The app installs nothing on its own. It shows that a new version is available, and only when you press Update does it download that version from khandaq.org. Before the download is used, the app checks it against the description, which must carry the signature of the Khandaq release key.

To stop the check, open Settings, then About, and switch off “Check for updates”. “Check now” beside it checks at once, even when the switch is off. Test builds do not check at all.

Device permissions

Khandaq asks for a permission only when you use the feature that needs it. The full list of permissions you are prompted for:

All of these are used on the device. None of the data they give access to is sent to us.

Android also declares permissions the system never puts a prompt in front of. Naming all of them, so the list above is not read as the whole story: internet and network state; wake lock, foreground service, special-use foreground service and run at boot, which keep the peer-to-peer connection alive in the background; modify audio settings for calls; full-screen intent, so an incoming call can take over the lock screen; exact alarm, so the background connection is re-established on schedule rather than whenever the system feels like it; the Google messaging receive permission that Firebase Cloud Messaging needs; Bluetooth and nearby devices, so a call can be routed to a connected headset (declared, but the app never puts a prompt in front of you for them); and a signature-level permission the app defines for its own internal broadcasts. None of these read personal data. Khandaq does not declare “all files access” or “ignore battery optimisations”.

Location deserves a note: your position is read only when you choose to send it, and it then travels end-to-end encrypted like any other message. Both apps draw a small map preview for a location message, which means the map provider (OpenStreetMap on Android, Apple Maps on iOS) receives a request for the map imagery around those coordinates, and with it your device’s IP address. Khandaq does not receive either.

Children

Khandaq is not directed to children under 17. Because it provides unrestricted, unmoderated communication, it is rated accordingly on the App Store.

Third parties

Khandaq does not sell or rent personal data to anyone, and it runs no advertising or analytics business: the app contains no analytics code, and the visit statistics of the website (see This website) are not sold either. There is no profile to sell: we hold no account, no contact list, and no message content. A small number of services are unavoidably involved in making the app work, and each of them is listed here, followed by the two the website uses if you allow it.

Khandaq is open source, and the Tox protocol libraries it builds on are open source and community-audited, so these claims can be checked against the code rather than taken on trust.

This website: visit statistics

Everything above is about the Khandaq app. This section is about the website, khandaq.org, and none of it applies to the app: the apps do not use Yandex Metrica or Google Analytics, and nothing from your profile, contacts or messages reaches either of them.

To see which pages people read and how they find the site, the website can count its visits with Yandex Metrica and Google Analytics, but only if you allow it. Until you choose Accept in the notice at the bottom of the page, the site loads nothing from Yandex or Google, and Decline keeps it that way. With scripts turned off, nothing is loaded and nothing is asked. Your choice is kept in your browser, in this site’s local storage.

If you accept, the pages of khandaq.org you open send both services:

Metrica’s Webvisor, which records sessions and forms, is off, and so is its click map. Google signals and ad personalisation are off too, Google is told not to use the data for advertising, and the site blocks Metrica’s requests to Yandex’s advertising network. After you accept, Metrica also checks whether an ad blocker is on and syncs Yandex’s own cookies, and Yandex and Google may set cookies on their own domains; this site cannot delete those, but you can, in your browser’s settings. Yandex and Google process this data under their own policies: the Yandex privacy policy, the Google privacy policy and how Google uses information from sites that use its services.

You can change your mind at any time with the button below. If you decline after accepting, the site stops both counters, deletes the cookies and the stored data they left on khandaq.org, and reloads the page without them; statistics already sent stay in the reports. Clearing this site’s data in your browser also clears your choice, and the notice asks again.

Changes to this policy

If this policy changes, the updated version will be posted on this page with a new “Last updated” date.

Contact

Questions about privacy? Email support@khandaq.org.

© 2026 Khandaq. Khandaq is free and open-source software. Portions of this text are derived from tox.chat, licensed under CC BY-SA 4.0. Owner and developer: Isa Dagestani