Gizly

Security

Gizly 1.2 · Last updated: November 4, 2026

This paper describes how Gizly, the iPhone and iPad app, and gizly-server, the relay it talks to, protect what you send. It covers the keys, the protocols built from them, what each party can and cannot learn, and the limits of the design. It is written for readers who want to check the claims on the rest of this site.

1. Goals and Threat Model

Gizly is built so that only the two people in a conversation can read it, nobody learns who is talking to whom, and nobody has to take the server's word for any of it. It stays private even if:

What Gizly cannot protect against is listed under Limits.

2. Cryptographic Primitives

Gizly uses well-studied, standard primitives from Apple's CryptoKit and implements none of its own: X25519 for key agreement, Ed25519 for signatures, HKDF-SHA256 and HMAC-SHA256 for deriving keys, ChaCha20-Poly1305 for encryption and SHA-256 for hashing. Each key is derived for a single purpose and used for nothing else.

3. Identity

On first launch the app creates an identity: a signing keypair and a key agreement keypair. The public keys are the only thing your contacts know you by. There is no account, username, phone number or email behind them.

The private keys are kept in the iOS Keychain, readable only while the phone is unlocked, never synced to iCloud Keychain and never included in a backup. An identity never outlives the app: after deleting and reinstalling it, Gizly starts with a new one, and you are a new person to everyone.

4. Pairing in Person

Contacts are added only by meeting. No server takes part, so there is nothing to look up, nobody can request to contact you, and no third party learns that two people paired.

  1. The inviter's phone shows a QR code holding its public identity, a fresh one-time key and a fresh random secret. A new code is made every time, so a code is never reused.
  2. The scanner replies over Bluetooth with its own public identity and a fresh one-time key, signed with its identity key and encrypted under the secret. To anyone nearby, both the Bluetooth service and the reply look random.
  3. The inviter checks the reply and confirms. Both phones then derive the same keys for the conversation from their identity keys, their one-time keys and the secret.

Combining identity keys with one-time keys means each side proves who it is, while the conversation stays safe even if an identity key is stolen later. The Bluetooth link itself is untrusted: without the secret, which only appears on the inviter's screen, nobody can read or forge a reply.

The Confirmation Code

Someone who photographs the QR code has the secret, and could try to pair with the inviter in place of the real scanner. To catch that, both phones show a six-digit code derived from the conversation's keys. The codes match only if each phone paired with the other, and an attacker cannot make them agree except by a one in a million guess. The code is shown, never stored or sent.

5. Messages

The Double Ratchet

Each conversation runs Signal's Double Ratchet. Every message is encrypted with its own key, and keys are deleted after use, so a key stolen later cannot decrypt earlier messages. Every reply also starts a new key exchange, which locks out anyone who stole the current state. Messages may arrive out of order, and duplicates and replays are recognised and dropped.

A Second Envelope

On top of the ratchet, every message is sealed again with a key only the two phones have, and padded to one of a few fixed sizes. The relay therefore cannot tell texts from receipts, see how long a message really is, or follow the ratchet to see when someone replied.

Inside is only what the app needs: a text with any photo, voice message, location or file offer, a delivery receipt, or a request such as deleting messages. The names you give contacts never travel at all.

Mailboxes

Each pair of contacts has two mailboxes on the relay, one per direction. Their IDs are derived during pairing, look random, and cannot be linked to either person. No two conversations share one, and only the two phones can work them out.

Reliable Without Trusting the Relay

A message is encrypted and saved on the phone before it is sent, and sent again until the contact's phone confirms it, for up to a week. A received message is saved before it is removed from the relay, so a message the relay loses is late, not lost.

6. Photos, Voice Messages and Files

Before a photo is sent, the app makes a new image from its pixels alone, so location, camera and other metadata stay behind.

Each photo or voice message is encrypted with its own random key, padded to a coarse size, and uploaded to the relay. The key travels inside the message, so only the contact can open it, and the relay cannot tell which message it belongs to. The contact's phone deletes it from the relay once saved, and the relay drops it after three days in any case.

Files of up to 1 GB are never stored on the relay. The message is only an offer, holding the file's name, size, a fingerprint of its contents and a random key. Once the contact's phone accepts it, the file passes through the relay from one phone to the other in encrypted pieces, and the relay keeps none of it.

7. The Relay

gizly-server has no accounts, no database and no disk storage. The only content it holds is messages waiting to be delivered, and photos and voice messages waiting to be downloaded, all encrypted and padded.

It never sees identity keys, names, phone numbers, who paired with whom, message content or real lengths.

Connecting

The app talks to the relay over QUIC with TLS 1.3. Mailbox IDs are the permission to use a mailbox, so they must not leak to anyone on the way, even though everything they carry is already encrypted. The app therefore accepts only a certificate for the relay's name from Let's Encrypt, the authority the relay uses. A certificate from any other authority, or a proxy that intercepts TLS on the phone or the network, is refused.

IP Addresses

Like any server on the internet, the relay must see each connection's IP address to answer it. It uses addresses only to share capacity fairly between users, keeps them in memory only as long as limits need them, and never writes them to disk or logs them. If you want to hide your address from the relay as well, a VPN does that.

Your contacts never see your IP address. The phones never connect to each other over the internet: pairing runs over Bluetooth, and everything else travels through the relay, which passes on only the encrypted bytes, never where they came from.

Staying Available

With no accounts, the relay shares its capacity by address instead. It is designed so that someone flooding it mostly crowds out their own traffic, not that of ordinary users. The server itself runs with minimal privileges.

8. On the Device

9. Limits

10. Reporting a Problem

If you find a weakness in Gizly or its relay, please write to support@gizly.info before making it public, with enough detail to reproduce it. Reports are read and answered.

Privacy Policy · Support