services:matrix:encryption
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:matrix:encryption [2021/04/12 14:33] – behrmj87 | services:matrix:encryption [2021/11/29 17:24] (current) – typo fix Sessin -> Session behrmj87 | ||
---|---|---|---|
Line 11: | Line 11: | ||
==== The somewhat short story ==== | ==== The somewhat short story ==== | ||
- | When using encryption in a room (or direct chat) all messages in that chat will be encrypted. | + | Some chats you encounter will be encrypted. Direct conversations are encrypted by default and encryption for rooms for multiple people can be switched on. When using encryption in a room (or direct chat) all messages in that chat will be encrypted. |
* Have one running session (in a browser on your computer, on your phone, wherever), so that new sessions can authenticate against the running session (cross-signing, | * Have one running session (in a browser on your computer, on your phone, wherever), so that new sessions can authenticate against the running session (cross-signing, | ||
* have access to your recovery passphrase (that you should create when you first log in) to recover your encryption keys when you log into a new session and have no other running sessions to authenticate against. | * have access to your recovery passphrase (that you should create when you first log in) to recover your encryption keys when you log into a new session and have no other running sessions to authenticate against. | ||
- | If either of this is the case, you will keep access to your old encrypted messages, | + | This means, that if you do have encrypted messages, |
- | ==== Upgrading encryption ==== | + | This may sound difficult, but it's not. Read on for what you need to do. |
- | This step is necessary if you have used encryption in the past on your matrix.physik.fu-berlin.de account. If you have not used encryption previously, you can jump to the section [[services: | + | ==== Setting up encryption for the first time ==== |
- | If you have used encryption before you will notice | + | When you haven' |
- | This concludes | + | Below the list of active sessions, you will find section |
- | ==== Setting | + | {{ : |
+ | |||
+ | Click on **Set up** to start. You will be shown this menu | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | By default the upper point (//Generate a Security Key//) is selected, but it's better to choose //Enter a Security Phrase//. What's the difference? | ||
+ | |||
+ | * A //Security Key// is a long random key, that you probably won't be able to memorise. It's purpose is to be stored somewhere safe, e.g. in a password manager like KeePassXC. | ||
+ | * A //Security Phrase// is that: a phrase, something that you will (hopefully) be able to remember, because you choose it, e.g. by a [[https:// | ||
+ | |||
+ | Also, when you generate a Security Phrase, you will be offered to generate a Security Key as well. So why not get both for the price of one? | ||
+ | |||
+ | Once you click **Continue** you can enter your passphrase | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | which you then need to confirm | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Afterwards you will be offered to also get your Security Key | ||
- | When you log in to Element, it will ask you to set up encryption recovery. This step will make sure that you can share encrypted messages across all your devices and different sessions. If you do not wish to use encryption you can skip this step. However as encryption will be used by default we highly recommend setting up encryption. | + | {{ : |
- | To setup encryption recovery | + | And to finish the setup, you need to confirm everything with your //ZEDAT password// |
- | {{ : | + | {{ : |
- | **Optional** By default | + | After you're done with you can have a look at the settings again, where it will look like this if you were successful. |
- | Additionally you can download a recovery key, which you can use if you forget or loose the passphrase. | + | {{ : |
- | {{ : | + | This is also where you can start over - via the **Reset** button - if you forget your Security Phrase and/or lose your Security Key, but still have access to your session, because you never log out. |
==== Verifying a session ==== | ==== Verifying a session ==== | ||
- | To access your encryption history and for other users to verify you it is necessary to verify a new session. To verify a session you can either confirm a new session from an existing session or enter your recovery passphrase. | + | To access your messages from encrypted chats, e.g. direct conversations, |
When logging in with a new device you will get prompted to verify it. | When logging in with a new device you will get prompted to verify it. | ||
- | {{ : | + | {{ : |
- | If you are logged into another session | + | The three options: |
+ | - **Use another login**, which will authenticate against a running session, e.g. on a phone or another computer. | ||
+ | - **Use Security Key or Phrase**, which works without another session, i.e. without another device, but you will need the Security Phrase or Key that you set up earlier. | ||
+ | - **Skip**, which skips authentication, | ||
+ | |||
+ | === Verifying a Session using a Security Phrase === | ||
+ | |||
+ | This is conceptually the easiest so, we'll discuss it first. Click **Use Security Key or Phrase** and in the screen that opens enter either your //Security Phrase// or your //Security Key//. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | If you enter either correctly, you will be greeted by this happy screen | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | === Verifying a Session using a Security Phrase === | ||
+ | |||
+ | If you are logged into another session, e.g. on your phone, it's easiest to click **Use another login**. There are multiple ways how this is handled, which depends on where the other session is running, e.g. Element on phones | ||
+ | |||
+ | One method that is always available is comparing emoji shown on both devices. First you will be asked on the device with an already authenticated session whether | ||
{{ : | {{ : | ||
Line 55: | Line 95: | ||
{{ : | {{ : | ||
- | Select to continue and you will be asked for a verification method. Currently the only option is to compare a sting of emojis. | + | Select to continue and you will be asked for a verification method. |
{{ : | {{ : | ||
Line 65: | Line 105: | ||
{{ : | {{ : | ||
- | Confirm the emojis match on both devices to complete verifying the session. | + | Confirm the emojis match on both devices to complete verifying the session and you get the happy result of a verified |
- | Alternatively you can select to verify a session by using your recovery passphrase: | + | {{ :services: |
- | {{ : | ||
==== Deleting a session ==== | ==== Deleting a session ==== | ||
Line 142: | Line 181: | ||
Sometimes it happens. Your computer and phone die at the same time and those were the only clients you were logged in at and you didn't save your passwordmanager database (hopefully you are using one) where you store your recovery keys or recovery passphrase to any other device. What now? | Sometimes it happens. Your computer and phone die at the same time and those were the only clients you were logged in at and you didn't save your passwordmanager database (hopefully you are using one) where you store your recovery keys or recovery passphrase to any other device. What now? | ||
- | Well, all your encrypted messages, i.e. messages in rooms or private discussions were encryption was enabled, are gone and you won't get them back, but you can make yourself new recovery keys for the future (and hopefully you will safe them redundantly): | + | Well, all your encrypted messages, i.e. messages in rooms or private discussions were encryption was enabled, are gone and you won't get them back, but you can make yourself new recovery keys for the future (and hopefully you will safe them redundantly). To this, just click **Use Security Key or Phrase** |
+ | |||
+ | {{ :services: | ||
+ | |||
+ | on the verification dialog after login and instead of entering your security phrase or key, which you've lost, click the **Reset all** link on the bottom, next to //Forgotten or lost all recovery methods?// | ||
+ | |||
+ | You will then be asked to confirm | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | And clicking **Reset** will sign out of all your old sessions and delete all keys, followed by guiding you through the procedure to generate new ones described above. | ||
+ | |||
+ | ==== I'm asked to authenticate every time I open my browser. What am I doing wrong? ==== | ||
+ | |||
+ | You will need to reauthenticate (that means: type in your recovery passphrase or use another session to authenticate your new one) whenever you log out of [[https:// | ||
+ | |||
+ | [[https:// | ||
- | - Sign out of all your old sessions from the " | + | On Firefox you can do this on the // |
- | - In the "Security | + | |
- | - Use new secure backup passphrase | + | |
- | | + | |
- | | + |
services/matrix/encryption.1618230808.txt.gz · Last modified: 2021/04/12 14:33 by behrmj87