PKC Direct Messaging (v2.5+)
Meshtastic firmware 2.3v2.5 introduced PKI-basedPublic encryptionKey forCryptography (PKC) encrypted direct (person-to-person)messages messages. This is— a significant security upgrade that provides forward secrecy formakes DMs —genuinely somethingend-to-end encrypted rather than just channel-scoped.
Note on terminology: This feature is officially called "PKC Direct Messages" or "encrypted direct messages" in Meshtastic documentation. It was introduced in firmware v2.5, not possiblev2.3 as some sources incorrectly state.
Before v2.5: How DMs Worked
Prior to v2.5, "direct messages" in Meshtastic were standard channel messages with a to field set to the recipient's node ID. Anyone on the same channel PSKwith the channel key could decrypt and read all DMs. There was no per-recipient encryption.
Howv2.5+: PKIPKC DMsEncrypted WorkDirect Messages
EachFrom Meshtasticv2.5 onward, direct messages use per-node generatesasymmetric a unique Curve25519 keypair on first boot:encryption:
- Key
generationexchange: X25519 ECDH —Nodeeachgeneratesnodeahas an X25519 public/private key(stored locally, never transmitted) and a public key.pair KeyEncryption:exchangeAES-CCM —Eachusingnodethebroadcastsderiveditsshared secret as the key
Backward —Compatibility
If you send a PKC-encrypted DM to anothera node,node running firmware 2.4.3 or older, Meshtastic performsautomatically anfalls ECDHback key exchange using your private key andto the recipient'legacy channel-based method. The sender's publicapp key,indicates derivingwhich a unique shared secret. This shared secretmethod is usedbeing as the AES session key for that message.
Requirements for PKI DMs
- Both sender and recipient must be running Meshtastic firmware
2.3v2.5 or later
Enabling and Verifying PKI DMs
PKI DMs are enabled by default in firmware 2.3+. No configuration is required. The Meshtastic app shows a lock icon or "encrypted" indicator on DMs that use PKI encryption. If the recipient's public key is not yet known, the app may fall back to channel-encrypted DMs or prompt you to wait for a key exchange.
Comparison: PSK Channel vs PKI DM Security
Source: meshtastic.org/docs/overview/encryption/ and futuremeshtastic.org/blog/introducing-new-public-key-cryptography-in-v2_5/. messages