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:
- The relay is compromised. Even someone in full control of the server could only drop or delay messages. They could not read, alter or forge them, and a replayed message is recognised and ignored.
- The network is hostile. Someone who can watch and change traffic between the phone and the relay, even with a certificate from another public certificate authority, cannot read it or learn mailbox IDs. At most they can block it.
- Someone is listening during pairing. A bystander who receives or sends Bluetooth learns nothing and cannot pair in your place. One who photographed the QR code could try, and the confirmation code shows it.
- The phone or its backup falls into the wrong hands. While the phone is locked, its keys and history cannot be read, and no backup holds any of them.
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.
- 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.
- 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.
- 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.
- Each piece is sealed with its own key, so pieces cannot be swapped, reordered or replaced unnoticed.
- The receiving phone confirms progress in a way the relay cannot fake, and an interrupted transfer picks up where it left off.
- At the end, the whole file is checked against its fingerprint.
- File names are cleaned on both phones, so a name cannot hide its real type or point outside the app.
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.
- Everything is kept in memory only. A restart loses whatever is still waiting, and the phones send it again.
- A message is deleted once the contact's phone has saved it, and after three days at most.
- To push new messages, it knows which mailboxes a connection is watching, for as long as it watches them.
- The server keeps no request logs and never analyses what passes through. It only counts totals for the whole server each hour, to plan capacity, never anything per mailbox, address or connection. Once something is delivered or a connection closes, no trace of it is left to look at later.
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
- Data protection. Conversations, keys and attachments are stored with the strongest iOS data protection: encrypted with a key that exists only while the phone is unlocked.
- No backups. Like the keys, messages and attachments are excluded from iCloud and computer backups, so no copy of them exists anywhere else.
- No background work, no push. Gizly receives messages only while it is open. It does not use Apple's push notification service, so neither Apple nor the relay operator has a device token to tie your phone to your mailboxes.
- App lock. An optional lock covers the app with a screen whenever it leaves the foreground, until you unlock it with Face ID, Touch ID or the device passcode. Turning it off asks too. It is a screen in front of the app; the files themselves are protected by the device's own lock.
- Deleting on both sides. Deleting messages, clearing a chat or removing a contact deletes them on both phones. This relies on the other phone running Gizly as published, so it is a courtesy between people who trust each other, not a guarantee. The same goes for the screenshot notice.
- Permissions on use. Camera, microphone and location are used only when you scan, take a photo, record or share a place, and location is looked up once, never continuously.
9. Limits
- An unlocked phone, malware with control of iOS, or a contact who screenshots or forwards what you send is outside what any messenger can stop.
- The confirmation code only helps if you compare it. If someone may have seen the QR code and the codes differ, cancel and pair again.
- Forward secrecy covers keys deleted after use. Messages still stored on a phone are only as safe as that phone.
- There is no recovery. A lost or wiped phone means meeting your contacts and pairing again, because the keys were never copied anywhere to recover them from.
- The relay can refuse service. It cannot read or forge what passes through, but it can stop passing it.
- Opening a shared place in Apple Maps tells Apple about that place, as opening any place in Maps does.
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.