Private — Encrypted in Transit
Everything your WordPress site sends through the WebSocket relay is encrypted on your server first: messages, attachment details, conversation names and user profiles. Each conversation has its own key, and your site gives it only to the people who can read that conversation. The relay never gets a key, so it can neither read what it forwards nor change it unnoticed.
This is a WebSocket-version feature. The free version uses AJAX polling against your own WordPress server, so no third-party relay is involved.
What it adds#
- Everything sent through the relay is encrypted on your WordPress server, with XChaCha20-Poly1305
- A separate key for every conversation, handed out by your site only to those who can read it
- A new key for a conversation when someone leaves it, is removed or banned, or loses access, which they never get
- The relay cannot decrypt anything it forwards, and anything changed on the way no longer opens
- The same protection for private messages, group chats, chat rooms, guests, calls and AI bot replies
- No setup and no key management: it is always on in the WebSocket version
How it works#
Your site makes a master key once and keeps it in your WordPress database. It never leaves your site: not to the relay, not to WordPlus Cloud, not to any browser. Every key a browser gets is made from it, and opens only what that browser's user may read already:
| Key | Who gets it | What it protects |
|---|---|---|
| Conversation key, one for each conversation | Its members, from your site, with the conversation | Message text, attachment details and file links, link previews, translations, transcriptions, locations, the conversation's name and image |
| Personal key, one for each user and guest | That user alone | What is sent to them alone: on-site notifications, an AI bot's reply as it is written, the keys of a conversation they are added to |
| Day key, a new one every day | Signed-in members and guests | Names, avatars and profile links, including on call screens |
When a user sends a message, your WordPress server stores it, encrypts it with the conversation's key and pushes it to the relay. The relay forwards it to the participants' open connections, and each participant's browser decrypts it locally.
| Stage | What's visible |
|---|---|
| Sender's browser → your server | Plaintext over HTTPS |
| Your server encrypts → relay | Encrypted ciphertext only |
| Relay → recipient's browser | Encrypted ciphertext only |
| Recipient decrypts | Plaintext locally |
A browser gets its keys only from your site. When someone receives the first message of a new conversation, its key comes inside the message, encrypted with their personal key, so it opens at once without another request. A key the relay sends a browser is never accepted, so the relay can't make a browser encrypt with a key it knows.
Frequently asked questions#
Is this the same as end-to-end encryption?#
No — this is transit encryption. Your WordPress server has the keys. For true end-to-end encryption (where only the participants — not even your server — can decrypt), use the optional end-to-end encryption (E2EE) per-thread feature.
Can one of my members read other conversations with the keys their browser has?#
No. A browser only ever gets the keys of the conversations its user can open on your site anyway, their own personal key and the day keys for names and avatars. Someone who copied the keys from their browser could not open another conversation, and once they leave or are removed from a conversation, its messages go with a new key they never get.
What changed in Better Messages 3.1?#
Before 3.1 one key, made once, encrypted everything the relay forwarded, and every browser that opened the messenger had it. Since 3.1 each conversation has its own key and only its members get it, so having an account on your site no longer opens conversations you are not in.
Is anything readable on the relay?#
Only the ids it needs for routing (user, thread and message ids), who is in a call and for how long, and the text of web push notifications, which by default only names the sender. Better Messages Cloud AI features are a separate service you switch on, and they do read the text they translate, moderate or transcribe, then discard it. See where messages are stored for the full list.
Does this require any setup?#
No — encryption is automatic on the WebSocket version. There's no key management, no user-facing setup.
Does this apply to file attachments?#
File attachments are stored on your server or in your cloud storage. Their links are encrypted in the message with the conversation's key, and the files themselves are served through your site's access checks. If you turn on end-to-end encryption, the file contents are encrypted too — each file gets its own AES-256-GCM key, applied in the browser before upload.
Are voice / video call streams encrypted?#
Yes — WebRTC uses DTLS/SRTP encryption for all media streams. See Secure for the connection-layer details.
Can attackers intercept messages over the WebSocket?#
The WebSocket connection is itself TLS-encrypted (WSS). Even before the content encryption, the transport layer is secure. Combined, an attacker would need to break both TLS and the content encryption, and the keys for the second never leave your site.
See also#
- End-to-end encryption (E2EE) — optional per-thread true end-to-end encryption
- Secure (WSS) — transport-layer security
- Local browser encryption — encrypt cached data on the user's device
- Your data is yours — what's stored where
- Privacy & GDPR — full privacy picture