mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
reformatted psk docs
This commit is contained in:
parent
bb2a6ba464
commit
c103d81e4f
|
@ -178,30 +178,15 @@ A channel `id` must be set in order to name a channel.
|
|||
|
||||
### psk
|
||||
|
||||
<!--- TODO pick which psk description to keep --->
|
||||
|
||||
<!--- option A as documented in the protobufs --->
|
||||
|
||||
<!--- A simple pre-shared key for now for crypto. Must be either 0 bytes (no crypto), 16 bytes (AES128), or 32 bytes (AES256). A special shorthand is used for 1 byte long psks. These psks should be treated as only minimally secure, because they are listed in this source code. Those bytes are mapped using the following scheme: 0 = No crypto 1 = The special "default" channel key: {0xd4, 0xf1, 0xbb, 0x3a, 0x20, 0x29, 0x07, 0x59, 0xf0, 0xbc, 0xff, 0xab, 0xcf, 0x4e, 0x69, 0xbf} 2 through 10 = The default channel key, except with 1 through 9 added to the last byte. Shown to user as simple1 through 10 --->
|
||||
|
||||
:::note
|
||||
Selecting a number from the following table will use publicly known encryption keys. They're shipped with Meshtastic source code and thus, anyone can listen to messages encrypted by them. They're great for testing and public channels.
|
||||
Selecting `1`-`10` from the following table will use publicly known encryption keys. They're shipped with Meshtastic source code and thus, anyone can listen to messages encrypted by them. They're great for testing and public channels.
|
||||
:::
|
||||
|
||||
| Setting | Behavior |
|
||||
| :-----: | :------: |
|
||||
| `0` | Disable Encryption |
|
||||
| `1` | Default Encryption |
|
||||
| `none`/`0` | Disable Encryption |
|
||||
| `default`/`1` | Default Encryption (use the weak encryption key) |
|
||||
| `2`-`10` | Default Encryption, except with 1-9 added to the last byte |
|
||||
|
||||
<!--- option B as documented in the python library --->
|
||||
|
||||
<!--- Use "--setchan psk none" to turn off encryption. Use "--setchan psk random" will assign a new (high quality) random AES256 key to the primary channel (similar to what the Android app does when making new channels). Use "--setchan psk default" to restore the standard 'default' (minimally secure, because it is in the source code for anyone to read) AES128 key. --->
|
||||
|
||||
| Setting | Behavior |
|
||||
| :-----: | :------: |
|
||||
| `none` | Disable Encryption |
|
||||
| `default` | Default Encryption (use the weak encryption key) |
|
||||
| `random` | Generate a secure 256-bit encryption key. Use this setting for private communication. |
|
||||
|
||||
:::tip
|
||||
|
|
Loading…
Reference in a new issue