How Z-Messenger handles trust: what you are asked to rely on, and what you are not
Every messenger asks you to trust something. Most ask you to trust a company: its servers, its account system, its promises about what it does with your data. Z-Messenger, which appears on Google Play as Z Messenger, starts from the opposite question. How little can be left to trust, and how plainly can we say what remains?
This article walks through the design as it is described in the project's public README. Version 4.9.2 is current on GitHub Releases. The Android app is on Google Play, listed as Z Messenger, and that listing is version 4.6.0. Builds for Windows, Linux and macOS are published with the v4.9.2 GitHub release. The source is published under a proprietary, source-available licence. You may read and review it, and self-host a relay for personal use. Commercial use needs written permission.
No accounts, no phone numbers
There is no sign-up. When you first run Z, your device generates its own identity key. Your address is a hash of that key. Nothing is registered with anyone, and no phone number or email address is asked for.
This removes a whole category of thing to protect. A service that holds no account database cannot lose one, and cannot be asked to hand one over.
Adding people: signed contact codes, out of band
If there is no directory, how do you find someone? You exchange signed contact codes directly with them, as a QR code or a pasted string, through some channel you already trust. That might be in person, or over a call.
The point is that the introduction does not pass through a server that could substitute someone else's key. Z offers an optional handle for people who want one, but a handle leads to an introduction mailbox made for it. It never leads to your account's key.
A relay that cannot read and does not keep
Messages still need to travel between devices, and that is the relay's job. The relay is designed to know as little as possible. It sees routing hashes and ciphertext, in one of a few padded sizes. It holds undelivered messages in memory only. It has no database, keeps no logs of message content, and drops a message once the recipient's device confirms it has it.
Sealed sender goes a step further. It hides who sent each message, even from the relay. The relay can pass the message along without knowing who wrote it.
The copy of your conversation lives in two places only: your device and your contact's. If you prefer not to rely on our relay, you can run your own. It is a single process that needs no storage.
The cryptography
Z uses well-studied building blocks rather than anything novel. A handshake in the style of X3DH sets up a shared secret, and the Double Ratchet takes over from there, using X25519, HKDF and HMAC with XChaCha20-Poly1305. Every message has its own key, so a key compromised today does not open yesterday's messages or tomorrow's.
On top of this sits a hybrid ML-KEM-768 layer, with periodic re-keying, intended to keep a conversation's messages, after its first round trip, closed to a future quantum computer. Identities also carry an ML-DSA-65 half. The project's documentation lists the exceptions to that protection, and it publishes a document that sets out what Z cannot do as plainly as what it can.
Device lists and the transparency log
A modern messenger lets you use several devices, and each added device is a new place a conversation can be read. So Z signs each linked device with your account key. Your contacts cross-check every device list they are given, inside the encrypted channel. The app also checks each list against a public transparency log, when one is configured.
The effect is that a device quietly added to an account shows up on the screens of the people it talks to. It cannot stay hidden by being shown to only some of them.
A transparency log is, by design, a permanent public record, and the README says so. It holds every device list an account publishes, for good. If you claim a handle, a separate handle log keeps that handle's keys for good. The README states what these logs and the relay can still observe, rather than leaving readers to find it out.
An encrypted vault on the device
Because messages live on devices, the device matters. Z keeps its data in an on-device vault in which every sensitive cell is sealed under a key held in the operating system's keystore. You can add a passphrase, protected with Argon2id, and a biometric app lock. Backups are encrypted, and you can restore one onto a wiped phone with a recovery code.
Trust you can check
Taken together, Z asks you to trust a few things you can examine rather than a company you have to take on faith:
- The relay is designed to see ciphertext and routing hashes, and to keep messages in memory only.
- Contacts are introduced by codes you exchange yourselves.
- Device lists are signed, cross-checked by your contacts and, where a log is configured, checked against a public transparency log.
- The code is published, so it can be read, reviewed and built from source. The project's documentation, including its protocol specification and threat model, is published alongside it.
None of this makes a messenger perfect. Z's own documentation is explicit about its limits, and we encourage anyone relying on it for a specific risk to read that document first.
Find out more
The source and releases are at https://github.com/FluffyHorizon1/z-messanger. Z Messenger is on Google Play at https://play.google.com/store/apps/details?id=com.zmessenger.www. More about Secured Cyber Solutions is at https://www.securedcybersolutions.co.uk.
Secured Cyber Solutions Limited is a security engineering firm based in London.