# Cross Signing



# Check Status

1. Go to Element `Security & Privacy` settings  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387379910-02-07-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387379910-02-07-pm.png)

1. Expand the `Advanced` section  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387391513-12-57-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387391513-12-57-pm.png)

1. Look for `All keys backed up`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387401467-14-42-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387401467-14-42-pm.png)

# Export and Import E2E Room Keys

## Element Web and Desktop

### Export

1. Go to Element `Security & Privacy` settings  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387379910-02-07-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387379910-02-07-pm.png)

1. Click `Export E2E room keys`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387639046-26-17-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387639046-26-17-pm.png)

1. Enter a secure passphrase and click `Export`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387653689-49-03-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387653689-49-03-pm.png)

1. Choose to save the file  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387665732-50-05-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387665732-50-05-pm.png)

1. Select a directory on your computer  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387681142-50-52-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387681142-50-52-pm.png)

### Import

1. Go to Element `Security & Privacy` settings  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387379910-02-07-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387379910-02-07-pm.png)

1. Click `Import E2E room keys`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387639046-26-17-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387639046-26-17-pm.png)

1. Click `Browse`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387798540-52-49-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387798540-52-49-pm.png)

1. Select your export  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387821871-53-11-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387821871-53-11-pm.png)

1. Enter your passphrase and click `Import`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387764980-55-34-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387764980-55-34-pm.png)

## Element iOS

### Export

1. Tap the cog in the top left of Element

1. Tap `Security`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387865840.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387865840.PNG)

1. Tap `Export keys manually`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387875834.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387875834.PNG)

1. Enter a secure passphrase and tap `Export`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387886968.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387886968.PNG)

1. Choose `Save to Files`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387895023.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387895023.PNG)

1. Choose a location then tap `Save`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387909559.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387909559.PNG)

### Import

This is a temporary solution until <a href="https://github.com/element-hq/element-ios/issues/1027" target="_blank" rel="noopener noreferrer">this issue</a> is resolved

1. Tap the ` ` in the bottom right corner  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387924418.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387924418.PNG)

1. Tap `Create room`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387932810.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387932810.PNG)

1. Tap the room name (Empty room) at the top  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387941450.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387941450.PNG)

1. Tap the room name again  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387950774.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387950774.PNG)

1. Under Advances, enable encryption  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387959498.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387959498.PNG)

1. Tab `Done` in the top right  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387970162.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387970162.PNG)

1. Tab the ` ` to send a file  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387979634.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387979634.PNG)

1. Tap `Send file`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387988806.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387988806.PNG)

1. Browse to and select your export  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702387999579.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702387999579.PNG)

1. Tap the file you just sent  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388007898.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388007898.PNG)

1. Tap `Import`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388015135.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388015135.PNG)

1. Enter your passphrase and tap `Import`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388022799.PNG)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388022799.PNG)

## Element Android

### Export

1. Tap your user picture in the top right

1. Tap the cog  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388065936.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388065936.png)

1. Tap `Security & Privacy`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388081154.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388081154.png)

1. Tap `Export E2E room keys`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388094066.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388094066.png)

1. Select a location and a file name, then tap `SAVE`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388106399.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388106399.png)

1. Enter a secure passphrase, then tap `EXPORT`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388117546.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388117546.png)

### Import

1. Tap your user picture in the top right  

1. Tap the cog  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388065936.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388065936.png)

1. Tap `Security & Privacy`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388081154.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388081154.png)

1. Tap `Import E2E room keys`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388094066.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388094066.png)

1. Browse to and select your export  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388194501.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388194501.png)

1. Enter your passphrase and tap `IMPORT`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388210822.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388210822.png)

# Reset Cross Signing

Only do this if you have forgotten or lost your cross signing backup passphrase.

Please read through the entire document before starting to make sure you understand the consequences of doing this.

- **[If you have an active session](#bkmrk-if-you-have-an-activ-0)**
- **[If you DO NOT have an active session](#bkmrk-if-you-do-not-have-a)**

## If you have an active session

1. You may wish to backup your keys before doing this just to be on the safe side if something goes wrong: See [Export and Import E2E Room Keys](export-and-import-e2e-room-keys)

1. Click `Reset` in the `Cross-signing` section  
[![](https://ems-docs.element.io/uploads/images/gallery/2022-05/scaled-1680-/image-1653469876518-10-07-am.png)](https://ems-docs.element.io/uploads/images/gallery/2022-05/image-1653469876518-10-07-am.png)

1. Click `Clear cross-signing keys`  

1. Click `Generate a Security Key` or `Enter a Security Phrase`. Then `Continue`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388366405-06-50-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388366405-06-50-pm.png)

1. Take note of your key then click `Continue`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388381413-07-52-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388381413-07-52-pm.png)

1. Enter your account password and click `Continue`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388392203-09-47-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388392203-09-47-pm.png)

1. You can delete any untrusted sessions in Element `Security & Privacy` settings. Select the sessions you want to remove and click `Delete 1 session`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388408171-14-55-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388408171-14-55-pm.png)

1. Optionally, [Sign out old devices no longer needed](#bkmrk-sign-out-old-devices)

## If you DO NOT have an active session

Doing this will destroy all your keys and you will NOT be able to access any historical encrypted messages.

1. Log in to Element  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388418844-59-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388418844-59-21-pm.png)

1. Click `Skip`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388430061-00-40-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388430061-00-40-pm.png)

1. Click `Skip` again  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388444347-01-08-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388444347-01-08-pm.png)

1. Do not connect to Key Backup or verify session when asked

1. Note that you will not be able to decrypt any previous messages after doing this  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388470952-12-36-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388470952-12-36-pm.png)

1. Follow the steps from [If you have an active session](#bkmrk-if-you-have-an-activ-0)

## Sign out old devices

1. Go to Element `Security & Privacy` settings

1. Select the devices you wish to sign out  
[![](https://ems-docs.element.io/uploads/images/gallery/2022-05/scaled-1680-/image-1653471055003-29-07-am.png)](https://ems-docs.element.io/uploads/images/gallery/2022-05/image-1653471055003-29-07-am.png)

1. Click `Sign out n selected devices`

1. Authenticate with your Matrix account password or via SSO  
[![](https://ems-docs.element.io/uploads/images/gallery/2022-05/scaled-1680-/image-1653470611519-23-14-am.png)](https://ems-docs.element.io/uploads/images/gallery/2022-05/image-1653470611519-23-14-am.png)

# Set up Cross Signing

## On first login to a new account

1. Sign up or log in

1. Click `Generate a Security Key` or `Enter a Security Phrase`. Then click `Continue`

1. Take note of your key, then click `Continue`

## If you did not set it up on first login, or if you did not get asked

1. If you do not have key backup configured, you will be asked to set it up the first time you enter an encrypted room. Click `Start using Key Backup`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388604930-41-12-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388604930-41-12-pm.png)

1. Click `Generate a Security Key` or `Enter a Security Phrase`. Then `Continue`
1. Take note of your key, then click `Continue`
1. Enter your account password, then click `Continue`

## If you clicked Don't ask me again

1. Go to Element `Security & Privacy` settings
1. Click `Start using Key Backup`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702388668889-42-12-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702388668889-42-12-pm.png)

1. Click `Generate a Security Key` or `Enter a Security Phrase`. Then `Continue`
1. Take note of your key, then click `Continue`
1. Enter your account password, then click `Continue`

# Verify new Login

When you log in to a new device/session, you must verify the login and connect it to cross signing and secret storage to access your backed up encryption keys for historical messages. This assumes you already have configured cross signing, see [Set up Cross Signing](set-up-cross-signing).

1. Log in to Element with your username and password  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389123173-55-36-am.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389123173-55-36-am.png)

1. Choose one of the methods below for cross signing

## Compare emojis using another login

1. Click `Use another login`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389134775-59-21-am.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389134775-59-21-am.png)
1. On another device/session that is connected to cross signing, click `Accept`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389147381-48-41-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389147381-48-41-pm.png)
1. Click `Start`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389160891-48-46-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389160891-48-46-pm.png)
1. Compare the emojis on your new and old sessions. They should be the same emojis and in the same order. Click `They match` on both sessions  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389171576-48-52-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389171576-48-52-pm.png)
1. If all was successful, you should get this green shield on both sessions. Click `Got it`. Your new device/session is now verified and will download your backed up message encryption keys  

## Scan QR code on another login

Login is here demonstrated on Element Android

1. On your phone, tap `Verify this login`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389239313.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389239313.png)
1. Your phone is now waiting for you to accept from another device  
1. On another device/session that is connected to cross signing, click `Accept`  
1. On your phone, tab `Scan with this device`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389296436.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389296436.png)
1. Using your phone, scan the QR code shown on your other session  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389317403.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389317403.png)  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389333810-57-15-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389333810-57-15-pm.png)
1. Your phone waits for you to confirm green shield on your other session. Click `Yes`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389346338.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389346338.png)  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389362510-58-43-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389362510-58-43-pm.png)
1. Tap `Done` on your phone  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389394064.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389394064.png)
1. If all was successful, you should get this green shield on both sessions. Click `Got it`. Your new device/session is now verified and will download your backed up message encryption keys  

## Using your Security Key

1. Click `Use Security Key`
1. Enter your Security key when prompted and click `Continue`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702389443730-00-38-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702389443730-00-38-pm.png)
1. If all was successful, you should get this green shield on both sessions. Click `Got it`. Your new device/session is now verified and will download your backed up message encryption keys