r/AppsWebappsFullstack • u/mettsalvo • 1m ago
Update: Central now has forward secrecy (X3DH + Double Ratchet) in 1:1 and group chats, and the protocol is open source
Hi all! A few weeks ago I posted Central here, a private European messenger with family-safety tools (Safe Trip, Safe Zones, SOS), built by a solo dev from Italy. The comments were direct and useful, and the biggest point was clear: the encryption had no forward secrecy. Here's what changed since then.
Original post: https://www.reddit.com/r/AppsWebappsFullstack/comments/1y8lb7z/
Forward secrecy is live
New protocol v2: X3DH key agreement + Double Ratchet, AES-256-GCM. Every message gets its own key, which is deleted after use, so a key stolen later can't open past messages.
It covers 1:1 chats, group chats (pairwise sessions between members) and media (each photo, audio or file has its own random key).
It also works in the web dashboard, which runs on its own and doesn't need your phone to be online.
Signed prekeys rotate every 7 days, plus one-time prekeys. Primitives are the platform's own (Tink on Android, CryptoKit on iOS). It's my own implementation, not libsignal.
If the other person still has an old build, the app falls back to the previous protocol so messages always arrive readable, and v2 kicks in once both sides are updated.
Open source and documented
The crypto library is public under Apache-2.0, now with the full v2 spec (PROTOCOL-V2.md) and shared test vectors: https://github.com/mattialettere/central-crypto
There's a Security Whitepaper with what's encrypted, what the server can see (metadata, safe-zone areas) and the known limits: https://getcentral.net/en/security-whitepaper.html
Other things that came out of your feedback
Safety number (QR or 60 digits) to check you're talking to the right person.
Replacing your keys or downloading the key backup now requires your account password, so a stolen session token alone isn't enough.
New phone: your v2 chat history comes back from an automatic encrypted backup (key derived from your identity key, the server only stores ciphertext).
Before you accept someone as a guardian, the app now shows who will see what and for how long.
Press and hold a message to see when it was sent, delivered and read.
What's still missing
No independent audit yet. If you do crypto review, I'd really like your eyes on PROTOCOL-V2.md.
I build Central with the help of AI tools, as I said last time.
Android 1.9.4 is out now, the iPhone update is in App Store review.
š± iPhone: https://apps.apple.com/app/id6826663138
š¤ Android: https://play.google.com/store/apps/details?id=net.getcentral.central
Thanks to everyone who commented on the first post. Questions and criticism welcome, especially on the protocol.