Skip to content
Encryption

End-to-end encryption

A lot of you asked how you can trust end-to-end encryption in an app that isn't open source. Fair question. So here's what Hubs encrypts end to end, what it doesn't, how it works, and how you can check for yourself that the code we run is the code we publish.

Private conversations are still a beta. Every review so far has been internal. I want an outside audit and I'm lining one up.

What it covers

What is end-to-end encrypted, and what isn't.

End-to-end encrypted means only the devices in the conversation hold the keys, so our servers can't read or hear it.

  • Private conversationsOne-to-one DMs you choose to make private: in a DM, choose Private conversation. They are a labeled beta. They work on the website and in the iPhone, iPad, Mac and Windows apps, not yet on Android.
  • Calls in DMs and group DMsVoice and video calls in a DM or a group DM are end-to-end encrypted. Each device in the call proves which account it belongs to, so our servers can't add a listener without it showing in the call.
  • Not end to end: messagesOrdinary DMs, group DM messages, and everything in hub channels are stored on our servers so they sync across your devices. Our systems can read them. That is how search works, and how moderators and our team can act on reports.
  • Not end to end: hub voice roomsHub voice rooms and meetings are encrypted between your device and our call servers, but not end to end. That lets a host record or caption a call when the hub allows it, and everyone is told.
How it works

How it works, in plain words.

Private conversations and encrypted calls share the same keys.

  • An open standardPrivate conversations use MLS, an open standard for encrypted messaging published as RFC 9420. Every device you use is its own member of the conversation, so there is no shared key to copy between devices.
  • Keys stay with youYour keys are made on your devices. They leave a device only locked: to your own new device when you link it, or inside your passkey backup. Our servers pass along locked messages and can't open them.
  • Safety codesCompare a 60-digit Safety code with someone in person or on a call you trust. If their keys change later, the conversation tells you, and a Verified mark is cleared until you compare again.
  • Disappearing by defaultMessages disappear after 1 week unless you pick another time. A change to the timer is sent inside the encryption, so our servers can't turn it off.
  • Missing message noticesEach device counts the other person's messages. If one never arrives, the conversation shows one line where it would have been.
  • Reporting with proofReport sends the messages you pick to Hubs staff with proof they were really sent by that person. Nothing else in the conversation is shared, and messages nobody reports stay unreadable to us.
Your devices

Your keys, on every device you use.

Each device has its own keys. Here is how a new device gets yours, and what to do when one is gone.

  • Link a new deviceOn the new device, choose Link from another device. It shows a code and a check number. Type the code on a device you already use, and make sure both show the same number. Part of the code is a secret that never reaches our servers, so the new device can tell the keys came from your own device.
  • Bring your messages alongWhen you link, your device can send its private conversation history to the new one. It is locked so only the new device can open it, and our servers keep the locked copy for 15 minutes at most. History does not copy any other way: a device set up without linking starts with new messages.
  • Passkey backupSave a passkey backup to get your keys back on a new device without the old one. We keep only a locked copy that your passkey opens. It holds your keys, not your messages.
  • When a browser forgetsBrowsers can erase what a site has stored. On an iPhone or iPad, and in Safari on a Mac, that can happen when you don't open Hubs for 7 days. A passkey backup brings your keys back, though not the messages that browser held.
  • Remove a lost deviceIn Settings, under Sign-in and security, then Private conversations, remove a lost or stolen device. It is signed out. Starting over then makes new keys the lost device doesn't have, and your contacts see that your Safety code changed.

Check it yourself

You shouldn't have to take my word for any of this. The code is public, and every release of the website can be checked against it.

The code is open source
The code that handles private messages, call keys and the keys that protect them, on the website and in the apps, is at github.com/AscentsGG/hubs-encryption. Its license is the GNU Affero General Public License, version 3 (AGPL). The rest of Hubs is not open source.
A signed list for every release
Each time we release the website, we publish a list of every file it serves, with a fingerprint of each one, at github.com/AscentsGG/hubs-releases. The list is signed with a key kept on a computer that is not one of our servers.
The page refuses changed files
The page itself always comes from our own address, and it names the fingerprint of every file it may load. Your browser refuses any file that doesn't match.
Rebuild the encryption files
The website runs the two encryption files the public code builds, unchanged. The build makes the same bytes on any computer, so you can build them yourself and compare them with what our site serves, with one command. It says "Your rebuild matches this release" when every byte is the same.
The Windows app
The library that does the encryption in the Windows app rebuilds the same way on our side, matching the one we ship byte for byte except for our signature. The public instructions for that rebuild are coming soon.
The release signing key
Every list is signed with this public key. If I ever have to replace it, I'll announce the new key in the repository, signed with this one.
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAqw24MtztP9Gp2UKAhgVIjx4Y+Y0kM8IxpabNhN3K3ks=
-----END PUBLIC KEY-----
What a check can't show
A check shows what was sent to you when you checked, not what your browser ran on an earlier visit. The phone and desktop apps are covered by the signatures on their installers and store builds, not by these lists.

Reviews and limits

So far every review of this code has been internal, by the team that builds Hubs. Every finding and its status is listed in the repository. No outside audit has been done yet, and we want one.

We serve the website
The same people who run the servers send the website's code to your browser. A bad release could leak keys, and no encryption design can rule that out on its own. That is why the code and the signed lists are public.
The first key is trusted
The first time your device sees someone's key, it trusts it. Comparing Safety codes is how you check that nobody is in between.
What our servers still see
Who talks to whom and when, from which device, and roughly how long each message is. Not what you say.
What our servers could still do
Hold back messages or devices. They can't read them, forge them, or change who is in a conversation without your devices noticing.

Report a problem

If you think something is wrong with the encryption, or a check doesn't match, please email us before you post about it, and include what the check printed.