Black Branch/Docs
All sections

Encryption and your recovery key

This page is for viewers who use direct messages. After reading it you can set up encryption, save a recovery key, verify a new device, and know what to do if you lose the key.

Direct messages you start on the site are end-to-end encrypted. Each message is locked on your device before it is sent and unlocked only on the devices of the people you are talking to. The site's server holds only the locked version, so the site's operator cannot read your messages, and neither could anyone who broke into the server. See Wikipedia: end-to-end encryption for the general idea.

Which messages this covers:

Why there is a recovery key

The keys that unlock your messages live on your devices, not on the server. That is what keeps the server from reading them, but it raises a problem: a new phone or browser starts with no keys and cannot read anything you received before.

The site solves this with a recovery key. Your keys are kept in an encrypted backup on the server, and the recovery key is the only thing that opens it. The site shows you the recovery key once and never stores it in a readable form. With it, any new device can open the backup and read your history. Without it, nobody can, including the site.

This is the standard Matrix approach. Matrix.org explains it in its documentation.

Setting it up

The first time you sign in, a note at the bottom of the screen says Secure your account. You can also open your profile card and press the row that says Encryption needs setup, or use the Secure your DMs step on the Home tab. All of them lead to Devices & Security.

  1. Press Set up encryption →. The site explains that this will create new keys and a recovery key for your account.
  2. Press Set up encryption to confirm. It says Setting up… for a moment.
  3. The site says Encryption set up! and shows your recovery key: a long code of letters and numbers in groups of four. Press Show to see it, or Copy key to copy it.
  4. Save it somewhere safe (see the recommendation below).
  5. Press I've saved it. This device now shows This device is verified, and the dot on your picture turns green.

You see the key only once. Save it before you press I've saved it.

🖼 Image: Devices & Security showing a newly generated recovery key with the Copy key button

The dot on your picture

Your picture in the chat typing bar has a small coloured dot, and the first row of your profile card says the same thing in words.

Dot Card row Meaning
Green Encryption ready This device is set up and verified. Nothing to do
Yellow, pulsing Verification pending Another device has asked to verify with this one, or a verification is in progress. Open Devices & Security to finish it
Red Encryption needs setup This device still needs setting up or verifying

Signing in on a new device

A new browser, phone or Matrix app starts out unverified and cannot read your earlier encrypted messages yet. Signing out and back in on the same browser counts as a new device too, because signing out deletes that browser's keys on purpose. Verifying the device proves it is really yours and gives it your keys. Your other devices and the people you talk to then trust it.

Devices & Security on the new device says Device not verified. There are two ways to verify it.

With your recovery key:

  1. Press Enter recovery key.
  2. Paste your key into the box (it is hidden as you paste; press Show to check it).
  3. Press Verify this device. It says Verifying…, then shows Importing… with a count while it brings your history in.

With another device you have already verified:

  1. On the verified device, open your profile card → Encryption ready → Devices & Security.
  2. Under Signed-in devices, find the new one (marked unverified) and press Verify.
  3. The new device shows "… wants to verify this session". Accept it.
  4. Both screens show the same set of emoji with names under them. Compare them carefully.
  5. If they match, press They match ✓ on both. You see Verification complete!

The emoji check makes sure you are verifying your own device and not someone else's. If they do not match, do not confirm; cancel and try again.

Your devices

Signed-in devices lists every browser, phone and app signed in to your account:

Label Meaning
Current The device you are using now ("This browser")
verified Trusted; it can read your encrypted messages
unverified Signed in but not yet trusted; press Verify to fix it
stale Not seen for 30 days

The link under the list (Manage sessions at …) opens your account page, where you can see and end sessions. If you see a device you do not recognise, end it there.

Getting a new recovery key

If you think someone else has seen your recovery key, make a new one.

  1. Open Devices & Security on a verified device.
  2. Press Rotate recovery key →. The site explains that this makes a new key and that device verifications are not affected.
  3. Press Generate new key.
  4. Save the new key the way you saved the first one, and press I've saved it.

The old key stops working. Your devices stay verified.

A new key also starts a new backup. Everything the device you are using can read is saved into it, so those messages stay readable on new devices. Messages this device never received, which only the old backup held, cannot be read on new devices afterwards. So make a new key on the device with the most history, and only when you think the old one has been seen.

If Devices & Security says no recovery key is saved and that you will not be able to verify a new browser without one, press Generate a recovery key → and save the one it shows.

If you lose your recovery key

If you still have a verified device, you are fine. Do not start fresh. Use that device to verify your other devices, then make a new recovery key on it (see above).

If you have lost the key and have no verified device left, your earlier encrypted messages cannot be recovered. Not by you, not by the streamer, not by the site's operator. That is the point of end-to-end encryption. You can still carry on with a clean start:

  1. Open Devices & Security and press Lost your recovery key? Start fresh →.
  2. The site explains that starting fresh replaces your encryption keys, earlier encrypted messages stay unreadable, and your other devices will need verifying again. Press Start fresh.
  3. Save the new recovery key it shows and press I've saved it.

After starting fresh, everything new works normally. Public rooms and forums are not affected at all, since they were never encrypted.

Approval on your account page. Replacing encryption keys sometimes needs your approval on your account page first, so nobody who briefly gets into your session can reset your keys. The site tells you so and shows Open account page. Approve it there, come back, and press the try-again button.

If something looks wrong

What you see What it means What to do
"Recovery key doesn't match. Check the key and try again." A typo, or a key from an older setup Check the key. If it is definitely right, use Key won't work? Start fresh →
A message saying the recovery key does not match your current encryption keys because your identity was reset elsewhere You started fresh on another device, so this old key no longer fits Use the newer key, or verify from a device that has it
Encryption needs a reset An earlier setup did not finish, so a saved key cannot work Press Start fresh and save the new key
Connecting to Matrix with a retry button The site could not reach its chat server Wait a moment and retry

For what the site stores and who can read it, see Encryption.

Next: Using it on your phone

← For your viewers