Next steps (LoRa mesh)
Channels, PSKs and private groups
How Meshtastic channels and pre-shared keys work, what each key size protects, why sharing a QR code shares the key, and the MeshCore equivalent.
- Difficulty
- Intermediate
- Time
- 30 min
- Cost
- Free
Updated 27 Nov 2026
Overview
A Meshtastic channel is a name and an encryption key. Two nodes only exchange messages when both the name and the key match. This guide explains the channel slots, what each key size gives you, why a QR code is a key in disguise, how remote administration works, and how MeshCore handles the same problem.
It describes the stable Meshtastic firmware v2.7.26 (released 2026-06-24, the latest non-pre-release on the firmware releases page when we read it on 2026-11-04). The live Meshtastic docs also describe features of the 2.8 pre-releases; those are marked as such below and are not available on stable firmware. The docs quoted here are meshtastic.org's 2.8 doc set, checked against the 2.7 set for the features described (channels, keys, remote admin); the 2.8-only differences are in their own section. Setup for the apps is in Flash Meshtastic; the wider picture of what is and is not protected is in Privacy and encryption.
Channels and slots
From the Meshtastic channels page (read 2026-11-04):
- A node has 8 channel slots, index 0 to 7. Index 0 is the
PRIMARYchannel; slots 1 to 7 areDISABLEDby default. "Active channels must be consecutive." - Roles are
PRIMARY("Only one primary channel can exist and cannot be disabled"),SECONDARYandDISABLED. Periodic broadcasts such as position and telemetry go on the primary channel by default. - The channel name has to be under 12 bytes, and nodes need matching names and matching keys to talk.
- Radio settings are not per channel. The modem preset settings "are identical for all channels and can not be unique per channel". What is per channel: name, key, uplink, downlink, mute and position precision.
See the glossary for channel, primary channel and PSK.
Do not rename the primary channel casually
The channels page says "a hash of the PRIMARY channel's name sets the LoRa frequency slot, which determines the actual frequency you are transmitting on in the band. To ensure devices with different PRIMARY channel name transmit on the same frequency, you must explicitly set the LoRa frequency slot."
So renaming the primary channel on one node can move it off the frequency the rest of your area uses, and it will hear nothing. Meshtastic's joining your local mesh page says to "Add private groups as secondary channels on 1 through 7 instead" of changing the primary. Leave the primary alone, add your group as a secondary channel, and your node stays on the same frequency as everyone else.
What each key size gives you
The channels page says a PSK "Must be either 0 bytes (no crypto), 16 bytes (AES128), or 32 bytes (AES256)." The CLI table on the same page lists these key settings:
| Key setting | What it is | Who can read the channel |
|---|---|---|
none |
0 bytes: encryption disabled | Anyone in range with a Meshtastic radio |
default |
The default key, hex byte 0x01, shorthand base64 AQ==; the docs call it "the weak encryption key" |
Anyone: it is publicly known |
simple0 to simple254 |
A single-byte key | Anyone: these are publicly known too |
| A 16-byte key | AES128 | Only people who hold the key |
random |
"a secure 256-bit encryption key. Use this setting for private communication." | Only people who hold the key |
The page is explicit about the middle rows: "Selecting default or any of the simple values ... will use publicly known
encryption keys. They're shipped with Meshtastic source code and thus, anyone can listen." So it is not only AQ==:
all the single-byte keys are public. If you want a channel to be private, use random or a 16-byte key, and nothing
shorter.
What a key does not give you
A good key stops strangers reading your message content. Meshtastic's documentation is clear that this is all it does. From the encryption page and our privacy and encryption explainer:
- The packet header is never encrypted, because relays need it. Anyone in range can see that your node exists and is transmitting.
- With plain AES-CTR (what stable firmware uses on channels) there is no message integrity check. Meshtastic's docs list this, together with no forward secrecy, as a limitation.
- Anyone holding the key can read everything and send as a member. There is no way to remove one person from a channel; the only fix we can see from the documented design is to make a new key and give it to everyone who should still have it (our inference, not a documented procedure).
- Some packet types ignore the channel's privacy goals: "Traceroute, NodeInfo, position, and acknowledgment packets normally use the channel key, even when they're addressed to one node."
Sharing a channel shares the key
Meshtastic shares a channel as a URL or a QR code. Joining your local mesh describes it as "a channel URL or QR code shared by the group, which carries the channel name, key, and LoRa settings together." The Python command-line page adds: "Meshtastic encodes the radio channel and PSK in the channel's URL."
What follows from that:
- A screenshot of a channel QR code is a copy of the key. Anyone who sees it can scan it and read the channel from then on.
- Scanning "applies all included channel settings and LoRa configuration settings", and the docs say "Only scan QR codes from trusted sources." Review what the QR changes before accepting it.
- The command-line option
--seturl"Replaces your current configuration and channels completely", so use the app's add-channel route for a group channel unless you want to overwrite your node's setup (Python CLI page, read 2026-11-04). - Share a private-group QR in person, or over a channel you already trust, and do not post it in a group chat that has members you do not know.
Set up a private group
- Pick a name under 12 bytes and generate a random key (the
randomsetting in the table above, a 256-bit key; app wording may differ). - Add it as a secondary channel in slot 1 to 7, not as a replacement for the primary channel.
- Check that position precision for that channel is what you want (next section).
- Share the channel QR code or URL with the people who should have it.
- Check that each member sees the channel with the same name and the same key, then send a test message.
We have not captured the exact menu labels in the Android and Apple apps, so follow the app's own add-channel screens; they change between releases. See Clients and apps. For a group on a walk or at an event, see Hiking, festivals and events.
Position precision per channel
Each channel has a position_precision setting, "an integer between 0 and 32" (channels page, read 2026-11-04):
| Value | Meaning |
|---|---|
| 0 | Never send location on that channel |
| 32 | Full precision |
| Anything in between | A rounded position |
The channels page also says the public MQTT server filters out precise positions. Client apps offer a narrower range of choices than the command line. The firmware clamp on public-key channels is a 2.8 behaviour, covered below.
A private channel does not hide your position from its own members, so set a precision you are comfortable with for everyone who holds the key.
Direct messages and remote admin
Direct messages (firmware 2.5 and later)
Direct messages used to be encrypted with the channel key. Meshtastic's limitations page says "The PSK DMs in particular were recognized as a problem, and the new DM system was rolled out with Meshtastic 2.5. This system uses x25519 public key crypto". Per the encryption page, direct messages use X25519 and AES-256-CCM, are not signed, and the node "won't send a direct message to a node whose key it doesn't have." Public keys are trusted on first hearing, with no central authority.
The legacy admin channel
Before 2.5, remote administration used a secondary channel named admin (the glossary
has the term). On 2.4.x and earlier, "messages exchanged on this channel are encrypted only with the channel's PSK,
allowing any node in the channel to administer others." On 2.5 and later the docs say the channel method "is still
supported ... but must be specifically enabled via the 'Legacy Admin channel' setting and is only for managing pre-2.5
nodes. A firmware version 2.5 and later node cannot be managed in this way."
Public-key remote admin
For firmware 2.5 and later, per the remote administration page:
- You store the public key of the node you manage from in one of the Admin Key fields in the remote node's Security config. "Each remote node can store up to three unique Admin Keys."
- The security page says the firmware generates the key pair once a LoRa region is set, and that "Once enabled, radio configurations can only be changed through PKC Remote Admin messages with firmware version 2.5+ or the legacy Admin channel with firmware prior to version 2.5."
- Each change must carry a session passkey the node issued within the last 5 minutes (encryption page).
- Managed Mode stops client apps writing config, and it is not required for remote admin to work.
If you run a node on a roof or a hilltop and want to configure it later, set the admin key before you leave it there. The step-by-step is in the docs; we did not test it.
In the 2.8 pre-releases, not on stable
The live docs describe features that need firmware 2.8. All 2.8.x releases on GitHub are flagged as pre-releases (we read the release list on 2026-11-04; the latest stable is v2.7.26). Do not expect these on a node running stable:
- AEAD channels.
use_aead"switches the channel from AES-CTR to authenticated encryption, AES-CCM. Each packet carries a 12-byte tag ... Every node on the channel must turn it on. Nodes with it on and nodes with it off can't read each other's messages on that channel, even with the same name and PSK. The setting needs a PSK, is experimental, and is off by default." It needs firmware 2.8.1 or later. - Signed broadcasts and a packet signature policy (COMPATIBLE, BALANCED, STRICT), described on the security page and tied to 2.8 signing.
- A 15-bit position precision limit on public-key channels. The 2.8 channels page says "On a channel whose key is
public, which means no key, the default key, or any single-byte key, the firmware limits precision to 15 bits." This is
absent from the 2.7 channels page, and the v2.7.26
PositionPrecision.cpphas no such clamp (v2.8.2 has aMAX_POSITION_PRECISION_PUBLIC_KEYconstant). On stable firmware, do not assume the default channel is limited for you: set the precision yourself.
Check the releases page again before you rely on either: stable can move to 2.8.
MeshCore: channel secrets and room servers
MeshCore (docs for v1.18.0, released 2026-10-15) uses the same basic idea: a channel is a shared secret.
- The secret is 16 bytes. The QR code docs
give a channel QR as
meshcore://channel/add?name=Public&secret=..., with the secret as "16-byte secret represented as 32 hex characters". A MeshCore channel QR therefore also carries the key. A contact QR carries a name and public key, not a channel secret. - The default Public channel's key is published. It is in the MeshCore FAQ, so the Public channel is readable by anyone.
- Channels flood. The FAQ says group channels "have to flood", because they are A to B with no defined path.
Repeaters can limit it with
set flood.max. - Sender names on channels are not authenticated. The payloads doc says any channel-key holder can choose any sender name.
- Cipher. Channel messages use the pre-shared channel key and the same cipher as direct messages: AES-128 in ECB
mode with a 2-byte truncated HMAC-SHA256 tag, from
src/Utils.cppon themainbranch (we read it on 29 October 2026; older firmware may differ). Our privacy explainer records what the source code shows for MeshCore and its weaknesses.
For a shared message board rather than a channel, see MeshCore room servers in BBS and store and forward, and the role overview in Flash MeshCore.
UK note
Checklist
- Never put group traffic on the default channel,
none,defaultor asimpleNkey. - Add private groups as secondary channels; leave the primary channel's name alone.
- Treat the QR code and URL as the key: share in person, never publicly.
- Set position precision per channel deliberately.
- For nodes you will administer remotely, use PKC remote admin on 2.5 and later, not the legacy admin channel.
- Re-check the firmware release list before trusting any 2.8 feature.
What we could not confirm
- The exact menu labels and screens in the Android, Apple and web apps for adding a channel or reading a QR code.
- Whether a node can be removed from a channel without changing the key; the docs we read describe none.
- Whether Meshtastic stable moves to 2.8 after 2026-11-04. Check the releases page.
Sources
- Meshtastic: channels
- Meshtastic: security configuration
- Meshtastic: remote administration
- Meshtastic: encryption
- Meshtastic: encryption limitations
- Meshtastic: joining your local mesh
- Meshtastic: Python CLI usage
- Meshtastic firmware releases (GitHub)
- MeshCore docs: QR codes
- MeshCore FAQ (repository copy)
- MeshCore docs: payloads
- MeshCore source: src/Utils.cpp (AES-128 ECB, 2-byte HMAC-SHA256)
- Ofcom IR 2030 v1.17 (published 23 October 2026)