How Central protects messages, locations and accounts
The technical document for partners, device makers, investors and privacy-minded users: what is encrypted and how, who we defend against, what we don't have yet and what comes next.
Version 1.2 · published
Summary. Central is a chat and personal-safety app for Android and iPhone. Messages, groups, files, SOS alerts and safe-trip positions are end-to-end encrypted on the phone with X25519 and AES-256-GCM; the server stores only ciphertext and the metadata needed to deliver it. The cryptographic code is public and checked by four independent implementations. Between up-to-date apps, one-to-one chats, groups, files and the web dashboard use a forward-secrecy protocol (X3DH and Double Ratchet), also published. Central has no certifications and no external audit: this document states what exists in the code today, what doesn't, and what we plan to do.
Contents
- System architecture
- Cryptographic architecture
- What the server sees
- Threat model
- Implemented protections
- Known limitations
- Improvement plan
- Reporting and contact
1. System architecture
Central has four parts. Encryption happens only in the apps and in the web dashboard: the server receives and delivers data that is already encrypted.
| Component | Technology | Where it runs |
|---|---|---|
| Android and iPhone apps | Kotlin Multiplatform: the same protocol code on both, on top of native primitives (Tink on Android, CryptoKit on iPhone) | On the user's phone |
| Server (API and real time) | Python (FastAPI), PostgreSQL, WebSocket | Railway, EU region |
| File storage | S3-compatible object storage; holds only encrypted files, except public pictures such as avatars | Scaleway, Paris (France) |
| Web dashboard for trusted contacts and businesses | Web page using WebCrypto, same encrypted format as the apps | In the user's browser, served by the server |
| getcentral.net website | Static pages | GitHub Pages |
External services: Google Firebase and Apple Push Notification service for notifications (which never contain message text, only a generic notice and the sender's name), Metered for the TURN servers used by calls, Resend for email, Mapbox for maps. The full list is in the privacy policy.
2. Cryptographic architecture
The full specification is public in PROTOCOL.md. Here is the summary.
2.1 Current protocol (v1), active for everyone
- Identity: each account has an X25519 key pair generated on the phone. The private key stays in the Android Keystore or the iPhone Keychain (this device only, excluded from iCloud backups). Only the public key goes to the server.
- One-to-one chats: chat key = SHA-256 of the X25519 secret between the two users. Each message is encrypted with AES-256-GCM, random 96-bit IV, 128-bit tag.
- Groups: a random, versioned AES-256 key, delivered to each member encrypted with the pairwise key. When someone leaves, a new key version is published.
- Files (photos, videos, voice notes, documents): a per-file key derived with HKDF-SHA256 and a random salt; AES-256-GCM with the file header as authenticated data. The server receives only the encrypted file.
- SOS: location, battery and the emergency video key are encrypted separately for each emergency contact.
- Key backup (optional): the private key encrypted with a key derived from the passphrase (PBKDF2-HMAC-SHA256, 210,000 iterations, random salt). Passphrases of at least 8 characters, with an in-app generator of strong passphrases (about 99 bits).
- Safety numbers: 60 digits or a QR code per one-to-one chat, computed like Signal's numeric fingerprint. If a verified contact's key changes, the chat flags it until it is verified again.
2.2 Forward-secrecy protocol (v2)
v2 is used automatically when every device involved supports it. Each part has a server-side switch that falls back to v1 without an app update. Full description and vectors: PROTOCOL-V2.md.
- X3DH to start a session: a signed prekey per device (Ed25519, rotated every 7 days, the old one deleted after 30) and 100 one-time prekeys at a time.
- Double Ratchet: a different key for every message, deleted after use. Stealing a phone's keys today does not reveal past v2 messages.
- Associated data: every v2 message is cryptographically bound to its session, the two devices and its header (AES-256-GCM with AAD); in groups also to the chat, so the server can't move it to another one.
- Covers: text and attachments in one-to-one chats and groups (one envelope with an encrypted entry for every member device, up to 60), and the web dashboard, which is a v2 device like the phones. Each file has its own random key.
- Guaranteed delivery: a message a device can't open is re-encrypted by the sender for that device only, in v2 or, as a last resort, in v1.
- History on a new phone: an encrypted backup on the server, with a key derived (HKDF) from the identity key, which is restored with the passphrase.
- Still v1: polls and votes, reactions, scheduled messages, whiteboards.
- Compatibility: used only when every device involved supports it; otherwise the message is sent in v1. v1 messages always stay readable.
- Why not libsignal: its licence (AGPL-3.0) is not compatible with a proprietary app. v2 follows Signal's public specifications and is our own implementation.
2.3 Primitives and verification
| Use | Primitive |
|---|---|
| Key agreement | X25519 (RFC 7748) |
| Encryption | AES-256-GCM |
| Derivation | HKDF-SHA256 (RFC 5869), SHA-256, PBKDF2-HMAC-SHA256 |
| Signatures (v2) | Ed25519 (RFC 8032) |
| Safety numbers | Iterated SHA-512 (5,200 rounds) |
We don't write the primitives ourselves: they come from Tink and the Java standard library on Android and from CryptoKit and CommonCrypto on iPhone. Shared test vectors pin every step byte for byte and are checked by four implementations that share no code: Tink, javax.crypto, CryptoKit (on the iOS simulator, in CI) and an independent Python generator using OpenSSL. The tests also check that tampered data is rejected.
3. What the server sees
| Data | The server sees |
|---|---|
| Chat and group messages, group keys | Ciphertext only |
| Photos, videos, voice notes, files | Encrypted files only |
| SOS alerts (location, battery, video key) | Ciphertext only, separate for each contact |
| Safe-trip positions and destination, boards | Ciphertext only |
| Private keys | Never; only the optional passphrase-encrypted backup |
| Public keys | Yes |
| Metadata: who talks to whom, when, sizes, group members | Yes |
| Safe zones: perimeters and enter/exit events | Yes, in clear, to show them to trusted contacts and businesses in the dashboard (events deleted after 3 days) |
| SOS by email to people without the app | Yes: the location is in the link, valid for 24 hours or until the SOS is closed |
| Account data (email, name, contacts) | Yes |
4. Threat model
What we protect: the content of conversations, locations and SOS alerts, users' keys, and access to accounts. For each adversary we state what stops them and what remains possible.
| Adversary | What stops them | What remains possible |
|---|---|---|
| Network eavesdropper | TLS on every connection, plus end-to-end encryption | Seeing that a device uses Central |
| Server compromise or malicious insider | The server holds only ciphertext and public keys; a key change posts a notice in the chat; safety numbers reveal a replaced key | Reading metadata and safe zones; replacing a public key towards users who haven't verified the contact; with v1, replaying or reordering ciphertext |
| Stolen session token | Rotating refresh tokens bound to the device; device revocation; key operations require the password; a password change ends all sessions | Using the account until the session is revoked, without reading past messages or changing keys |
| Password guessing | bcrypt; per-IP and per-email limits on login, codes and emails; one-time codes with expiry and limited attempts | Slow guessing of weak passwords |
| Someone who obtains the key backup | PBKDF2 with 210,000 iterations; passphrases of at least 8 characters; downloading it requires a recent login | An offline attack on a weak passphrase |
| Malicious user (stalker, harasser) | Blocks enforced by the server; new chats only with friends; other users' emails never shown; presence visible only to friends; reports and sanctions | Creating a new account |
| Another app on the phone | Android components not exported; widgets protected by a key; shares accepted only from safe content sources | Nothing known beyond the permissions the user grants |
| A website attacking the web dashboard | CSP with nonces, session in an HttpOnly cookie, restricted CORS, validated media URLs | Nothing known |
Out of scope: compromised, rooted or jailbroken phones; someone holding the unlocked phone; attacks on the systems of Apple, Google or hosting providers; an adversary with legal power over the hosting provider, who would still see only what the server sees.
5. Implemented protections
Account and access
- Passwords stored only as bcrypt hashes (cost 12).
- Email verification with a 6-digit code (15 minutes, 5 attempts); password reset with a code (10 minutes, 5 attempts).
- Codes from a cryptographic generator, compared in constant time.
- Reset and resend always answer the same way, without revealing whether an email is registered.
- Rate limits on sign-up, login (per IP and per email), codes and emails.
- JWTs signed with a mandatory secret key: without it, the server won't start.
- Separate access and refresh tokens; the refresh token rotates on every use and is bound to the device.
- A password change or reset ends every session; changing it requires the current password.
- List of linked devices, with revocation of one or all others, also applied to real-time connections.
- Replacing keys or downloading their backup requires the password or a login less than 15 minutes old; unlocking the backup allows 5 attempts every 15 minutes.
- Web dashboard: session in an HttpOnly cookie, unreadable by scripts.
App
- Encrypted local database on Android (SQLCipher); session encrypted with the Keystore (Android) or kept in the this-device-only Keychain (iPhone).
- Android automatic backup disabled: chats don't end up in the phone's cloud backups.
- Obfuscated release code (R8) on Android; internal components not exposed to other apps.
- Optional PIN per chat; timed messages really deleted from server and phone.
- WebRTC voice calls encrypted phone to phone (DTLS-SRTP), temporary TURN credentials.
- Push notifications without message content.
- Anonymous usage statistics that can be turned off in Settings; crash monitoring (Crashlytics).
Server
- The server never receives private keys or end-to-end content in clear.
- CORS limited to authorised origins; security headers on every response (nosniff, Referrer-Policy, CSP on HTML pages).
- Client IP taken from the trusted proxy, not from headers written by the client.
- Uploads limited to allowed types (others only when encrypted) and to 200 per hour per user; media URLs accepted only when they point to Central's storage.
- Tokens stripped from server logs.
- Blocks between users enforced by the server on chats, messages and calls.
- Apple purchases verified with the signature and certificate chain up to Apple's root; Google Play purchases verified with the official API.
- Automatic deletion: trip positions within 24 hours (7 days if the trip is overdue), safe-zone events after 3 days.
- Secrets only in environment variables, no keys in the code.
getcentral.net website
- Static pages, served over HTTPS only, with no cookies and no third-party trackers.
- Content-Security-Policy and Referrer-Policy on every page.
- Our own cookieless statistics, without storing IP addresses; "Do Not Track" respected.
- Contact form with a honeypot field, a minimum fill-in time and per-IP and per-email limits.
- security.txt (RFC 9116) and a disclosure policy.
Process
- Server-side kill switches for every new cryptographic or communication feature, falling back to the previous version without an app update.
- Every change must stay compatible with app versions already installed.
- More than 500 automated server tests, and crypto test vectors run in Android and iPhone CI.
- Two internal security reviews of the code (10 and 25 November 2026), with the serious issues fixed.
- Server dependencies checked with pip-audit.
6. Known limitations
- No external verification: no SOC 2 or ISO/IEC 27001 certification, no penetration test, no independent audit of the cryptography. Reviews so far are internal.
- Forward secrecy with exceptions: v1 messages (before v2, with apps that aren't up to date, last-resort redeliveries, polls, reactions, scheduled messages, whiteboards) have long-term keys. Someone who obtained the identity key together with the server's data could read the v2 history kept in the encrypted backup. The server decides when v2 is used and could force v1 without the user seeing it.
- v1 messages carry no associated data: the server could replay or reorder ciphertext it already holds.
- Key verification is optional: users who don't compare safety numbers trust the server for public keys.
- Metadata and safe zones are visible to the server.
- The backup is as strong as the passphrase: PBKDF2 is not memory-hard like Argon2.
- No reproducible builds: it isn't yet possible to prove that the published app is built exactly from the public code.
- No two-factor authentication for accounts.
- Hosting: the server is in the EU region, but Railway is a US company; notifications, maps and email also go through US providers.
- Website HTTP headers (HSTS, framing protection): not active yet, because GitHub Pages doesn't allow them; they will come with a proxy in front of the site.
- Independent developer: Central is built by one person, with the help of AI tools.
7. Improvement plan
In order of priority. Timing depends on available resources: we will update this document at every step.
| Work item | Status |
|---|---|
| Forward secrecy v2 for one-to-one chats, groups and the web dashboard | Done (app 1.9.4) |
| Publish the v2 code in the central-crypto repository | Done |
| v2 for polls, reactions, scheduled messages and whiteboards too | Planned |
| HSTS and HTTP headers on the website through a proxy | Configuration ready, to be activated |
| Two-factor authentication | Planned |
| Key backup with Argon2id, migrating existing backups | Planned |
| Independent audit of the cryptography | When resources allow; we are seeking dedicated funding |
| Reproducible builds | Under evaluation |
8. Reporting and contact
If you find a security issue, write to info@getcentral.net with the subject "Security". We reply within 7 days and aim to fix within 90. Rules, scope and acknowledgements are in the disclosure policy. Technology partners and anyone with questions about this document can use the same address.
Document history
- 1.0, 4 December 2026: first publication.
- 1.1, 5 December 2026: v2 forward secrecy in groups and the web dashboard too, v2 code published, limitations updated.
- 1.2, 6 December 2026: minimum recovery passphrase length lowered to 8 characters.
Download Central, it's free
On the App Store for iPhone and on Google Play for Android. The essential safety features are free.