Encryption and verification
Breve encrypts messages end to end in every room that requires it. The homeserver stores the message but can't read it.

Verify this device
Each new sign-in is a new device. Your other devices don't trust it until you verify it. Until then, this device can't read the messages that your other devices already hold.
Choose Account in the main menu, then open the Encryption page. The top of the page shows whether this device is verified.
There are two ways to verify:
From another device that is already verified. Under Verify this device, select Verify with Another Device. Accept the request on the other device.
With your recovery key. Under Unlock with your recovery key, enter the key and select Restore.
After the request, Breve shows a code or a row of emoji. See Verify with a code and Verify with emoji.
Verify with a code
If the other device can scan a code with its camera, Breve shows a code and the words Scan this code with your other device.
Scan the code with the other device's camera.
Breve asks Does the other device say the scan is correct? Look at the other device.
If the other device says the scan is correct, select It's correct. If not, select It's not correct. The verification stops.
To compare emoji instead of the code, select Compare Emoji Instead.
A device that can't scan a code goes straight to the emoji. Breve can show a code but can't scan one.
Verify with emoji
Both devices show the same emoji in the same order. Compare the two rows.

If the rows match, select They match on this device and confirm on the other device. If they differ, select They don't match. The verification stops.
When it finishes, Breve says Device verified.
A request to verify
Another person can ask to verify you, for example with Verify User in Element. The request can arrive in a direct message or from one of your own devices. Breve opens the verification window immediately.
Select Verify to start, or Decline to cancel the request. Decline also cancels it on the other side. If Breve's window is not active, a notification with a Show button tells you.
To start verification with another person yourself, select Verify on their profile, or in the menu of their row in the member list. You can also type /verify followed by the user ID.
Whether a person is verified
The Encryption group on a profile shows whether you verified the person. Devices lists the person's devices. Each device shows whether it is verified.
If you verified a person and their identity changed afterward, the row says so. Verify the person again.
Verify doesn't appear for a person you already verified. It also doesn't appear when Breve has no encryption identity for the person. To get that identity, you and the person must share an encrypted room.
Your recovery key
If you have no other device to verify from, the recovery key unlocks your message history. Store it somewhere safe, away from this computer. Nobody can give you the key again.
The first time you sign in to an account without recovery, Breve offers to turn it on. Select Turn On Recovery, or select Not Now to do it later.
If this device has no recovery key, a row above the buddy list says Keep access to your encrypted messages. Select Turn On Recovery… to make a recovery key. The Encryption page of Settings has the same button.

Breve shows the new key once. Select Copy Recovery Key and store the key in a safe place. Breve can't show it again.
During recovery, a message that says no backup key was found is not an error. The history unlocks as each room loads.
Change or turn off the recovery key
When recovery is on, the Encryption page of Settings has two more rows under Recovery:
- Change recovery key
Select Change…, then Change. Breve makes a new key and shows it once. The old key stops working.
- Turn off recovery
Select Turn Off…, then Turn Off. Breve deletes the backup on the homeserver. A device you sign in on later can't read your earlier messages.
A backup this device can't open
Your homeserver can hold a backup that needs a key your account no longer has. In that case, a row above the buddy list says Finish encryption setup. Select Review.
On the Encryption page, select Replace Backup…, then Replace. Breve makes a new backup and a new recovery key. Messages that only the old backup holds are lost.
Reset a lost identity
If you lost your recovery key and have no other verified device, you can start over. The Encryption page shows Lost your recovery key? while this device can't open your backup. The Unlock encrypted history window has a Reset Identity… button that opens that page.
The notice over the buddy list that asks you to unlock or set up recovery has a close button. It hides the notice until you sign in again. The Encryption page keeps the same choices.
Select Reset… on the Reset identity row.
Read the warning and select Reset.
Enter your password and select Continue. If your homeserver signs you in through the browser, confirm the reset on the page that opens.
Breve deletes your backup and makes new keys. Your old encrypted history stays unreadable. The people you talk to see a new identity for you. Verify your other devices again and make a new recovery key.
A message you can't read
A message that shows This device can't read this message yet is encrypted with a key that this device doesn't have. When Breve knows the cause, the line under the lock gives it:
The message was sent before you joined. Nothing on this device can open it.
Verify this device to read this message: the key backup holds the key, or the sender shares keys only with a verified device.
The message is older than this device, and your account has no key backup.
The sender didn't share the key with this device, or didn't verify the device that sent the message.
If this device can fix the problem, a button under the message opens the Encryption page: Unlock the Encrypted History… or Verify This Device…. Breve tries again as soon as the key arrives.
A warning under a message
In an encrypted room, Breve checks who sent each message. If the check finds a problem, a red line under the message explains it:
The sender hasn't verified the device that sent this message. Ask the sender to verify their new device.
This message came from an unknown or deleted device.
The sender reset their identity after you verified them. Verify the sender again.
This message wasn't encrypted.
A gray shield next to the time means the message's key came from your backup or from another device. This device can't check who sent that message. This is common after you sign in and is not a sign of an attack.
A changed identity
A person in an encrypted room can get a new encryption identity. A note on the message box then names that person. Either the person reset their identity, or an attacker is presenting a false identity for them.
Ask the person through another channel, for example by phone, whether they reset their identity.
If they did, select Accept. The note then names the next person with a new identity.
Select Open Profile to verify the person again.
If you verified the person before, the button is Remove Verification. To keep the person verified, verify them again from their profile.
Keys in a file
Under Encryption keys on the Encryption page, Export keys saves your room keys to a file protected by a passphrase. Import keys reads such a file back in. Use this to move your history to a device that can't reach your key backup.
Send keys only to verified devices
Under Key sharing on the Encryption page, turn on Send keys only to verified devices. Breve then shares a room's keys only with devices you verified. An unverified device can't read your new messages. The setting is off by default. It takes effect the next time Breve starts.
Messages while you are signed out
When you sign out, none of your devices can receive the keys for new messages. A dehydrated device solves this. It is a device that your homeserver keeps for you. It receives message keys while none of your devices is online.
Open the Encryption page of Settings and turn on Receive messages while signed out. Enter your recovery key. Breve uses the key once and doesn't store it. This group appears only if recovery is on and your homeserver supports it.
Breve renews the device every week while it runs. Restarting Breve doesn't continue the renewal. Select Renew… and enter your recovery key again. Breve then reads the keys that the earlier device received.
On a new device, turn the switch on to read the keys that arrived while you were signed out.
When you turn the switch off, Breve deletes the device on your homeserver. Any key that Breve hasn't read yet is lost.