Security3 min read

How UIMessage’s encryption works

A plain-English look at how UIMessage locks your messages and calls on your device, how to check who you’re talking to, and what our servers still see.

  • The UIMessage team
ShareXLinkedIn
On this page
  1. Every device has its own keys
  2. Keys that keep changing
  3. Groups, media, statuses and calls
  4. Checking who you’re talking to
  5. What our servers still see
  6. Keeping your chats safe

Every message, call and status in UIMessage, and every photo, video, voice note and file you send, is end-to-end encrypted: locked on your device with keys that only the devices in the conversation hold. Our servers carry the locked copies and can’t open them.

Every device has its own keys

When you sign up, your phone creates an account identity key that never leaves it. Every device you use (your phone, your Mac, an iPad, a browser) makes keys of its own, and your phone vouches for each one by signing your account’s list of devices. A device you link makes its own keys, and the phone adds it to the signed list.

Keys that keep changing

Every pair of devices talks through its own session. A session starts with PQXDH, a key agreement that combines X25519 with ML-KEM-768, so breaking X25519 later, even with a quantum computer, doesn’t give up the session’s key. It continues with the Double Ratchet: each message gets a fresh key, and old keys are thrown away. So the keys a session holds today can’t unlock the messages it carried before.

The protocol is our own code, built on published designs, and we test it on every platform (iPhone, iPad and Mac, Android and the web) against one shared set of test vectors.

Groups, media, statuses and calls

  • Groups use sender keys. A member’s device hands its key only to the members in the group’s own membership record, a chain of changes each signed by the device that made it, which every member’s device checks for itself.
  • Photos, videos, voice notes and files are each locked with a fresh key, which travels inside the encrypted message.
  • Statuses are locked the same way and signed by their owner’s device, and your app checks that signature before it shows one.
  • Calls get fresh keys through the same encrypted sessions, and every audio, video and screen-share frame is encrypted before it leaves your device.
  • When you link a Mac, an iPad or a browser, your phone can send it your chat history, encrypted. An iPhone sends it to a Mac or an iPad automatically, and to a browser only if you agree. An Android phone sends it to every device it links. Our server deletes that copy within minutes of the download, or after 24 hours if no device downloads it.

Checking who you’re talking to

Each one-to-one chat has a safety number made from both accounts’ identity keys. Compare it with your contact in person, and if the numbers match, your messages and calls are end-to-end encrypted with each other’s real keys. When a contact’s keys change, your chat with them says so, and if you verified them, messages to them won’t send until you review the new number.

What our servers still see

Our servers keep each encrypted message only until the devices it was sent to have saved it, then delete it. To do their job they still see who messages or calls whom and when, what kind of message each one is, and the size of each message and file. They also see your profile, your devices, your contacts who use UIMessage, and your groups with their names, photos and members. To find those contacts, the app sends our servers the phone numbers in your address book, if you allow it. Our Privacy Policy lists all of it, and how long each is kept.

Keeping your chats safe

  • Compare safety numbers with the people you talk to most.
  • Anyone holding your unlocked device can read what’s on it. Lock your device, and lock the chats that matter.
  • If you stop using a device you linked, log it out from your phone, in Profile, then Devices.
ShareXLinkedIn

More from the newsroom

Security

What our servers keep, and for how long

Our servers delete each encrypted message once the devices it was sent to have saved it. This is what else they keep, for how long, and which three companies handle some of your information for us.

Security

How we protect your calls

Every audio and video frame is encrypted on your device before it leaves. Our relays carry calls they can’t decode, and when you call someone outside your contacts, they never see your IP address.