<commit_before># End to End encryption by default

By default, Riot will create encrypted DM rooms if the user you are chatting with has keys uploaded on their account.
For private room creation Riot will default to encryption on but give you the choice to opt-out.

## Disabling encryption by default

Set the following on your homeserver's
`/.well-known/matrix/client` config:
```json
{
  "im.vector.riot.e2ee": {
    "default": false
  }
}
```<commit_msg>Apply suggestions from code review<commit_after># End to end encryption by default

By default, Riot will create encrypted DM rooms if the user you are chatting with has keys uploaded on their account.
For private room creation, Riot will default to encryption on but give you the choice to opt-out.

## Disabling encryption by default

Set the following on your homeserver's
`/.well-known/matrix/client` config:
```json
{
  "im.vector.riot.e2ee": {
    "default": false
  }
}
```
{'fraction_non_alphanumeric': 0.08208955223880597, 'fraction_numerical': 0.0021321961620469083, 'mean_word_length': 4.1878453038674035, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '48010', 'n_tokens_mistral': 274, 'n_tokens_neox': 257, 'n_words': 126}