Encrypted Channel support #39

Closed
opened 2026-10-05 06:03:18 +02:00 by adam · 11 comments
Owner

Is it possible to add support for encrypted Meshtastic channels since some groups use encrypted Meshtastic channels for communications instead of the default LongFast channel?
MeshSTL has an encrypted channel that is used here in St. Louis and only LongFast messages show on it.
See: https://meshview.meshstl.org/

Is it possible to add support for encrypted Meshtastic channels since some groups use encrypted Meshtastic channels for communications instead of the default LongFast channel? MeshSTL has an encrypted channel that is used here in St. Louis and only LongFast messages show on it. See: https://meshview.meshstl.org/ <!-- github-sync-id:3834637396 -->
adam closed this issue 2026-10-05 06:03:18 +02:00
Author
Owner

This feature has been added to the latest version. Would you help me test it?

This feature has been added to the latest version. Would you help me test it? <!-- github-comment-id:3793889293 -->
Author
Owner

This feature has been added to the latest version. Would you help me test it?

I let the person running MeshSTL's Meshview app know. He should be responding sooner or later.

> This feature has been added to the latest version. Would you help me test it? I let the person running MeshSTL's Meshview app know. He should be responding sooner or later. <!-- github-comment-id:3795511202 -->
Author
Owner

Alright we updated to 3.0.4 and it doesn't seem to decrypt our messages yet.

Alright we updated to 3.0.4 and it doesn't seem to decrypt our messages yet. <!-- github-comment-id:3795517089 -->
Author
Owner

did you update for secondary keys in the config file

# Optional list of secondary AES keys (base64), comma-separated.
secondary_keys =
did you update for secondary keys in the config file ``` # Optional list of secondary AES keys (base64), comma-separated. secondary_keys = ``` <!-- github-comment-id:3795543843 -->
Author
Owner

did you update for secondary keys in the config file

# Optional list of secondary AES keys (base64), comma-separated.
secondary_keys =

Yes. According to @jamon
secondary_keys =

> did you update for secondary keys in the config file > > ``` > # Optional list of secondary AES keys (base64), comma-separated. > secondary_keys = > ``` Yes. According to @jamon secondary_keys = <MeshSTL channel key> <!-- github-comment-id:3795564499 -->
Author
Owner

I added some extra logging to see what's going wrong:

Trying to decrypt packet 973948163 from node 2733363988 with key 1PG7OiApB1nwvP+rz05pAQ==
Decryption failed for packet 973948163 from node 2733363988
Trying to decrypt packet 973948163 from node 2733363988 with key ***KEY HIDDEN***
Decryption successful for packet 973948163 from node 2733363988
Decrypted packet data:
{}
Trying to decrypt packet 973948163 from node 2733363988 with key 1PG7OiApB1nwvP+rz05pAQ==
Decryption failed for packet 973948163 from node 2733363988
Trying to decrypt packet 973948163 from node 2733363988 with key ***KEY HIDDEN***
Decryption successful for packet 973948163 from node 2733363988
Decrypted packet data:
{}
Trying to decrypt packet 93343320 from node 2997350440 with key 1PG7OiApB1nwvP+rz05pAQ==
Decryption successful for packet 93343320 from node 2997350440
Decrypted packet data: portnum: POSITION_APP
payload: "\r\000\000\020\027\025\000\0000\312\030\215\002%\t8ui(\002X\335\005x\000\200\001\000\230\001\006\270\001\013"
bitfield: 1

{
  "portnum": "POSITION_APP",
  "payload": "DQAAEBcVAAAwyhiNAiUJOHVpKAJY3QV4AIABAJgBBrgBCw==",
  "bitfield": 1
}
Trying to decrypt packet 93343320 from node 2997350440 with key 1PG7OiApB1nwvP+rz05pAQ==
Decryption successful for packet 93343320 from node 2997350440
Decrypted packet data: portnum: POSITION_APP
payload: "\r\000\000\020\027\025\000\0000\312\030\215\002%\t8ui(\002X\335\005x\000\200\001\000\230\001\006\270\001\013"
bitfield: 1

{
  "portnum": "POSITION_APP",
  "payload": "DQAAEBcVAAAwyhiNAiUJOHVpKAJY3QV4AIABAJgBBrgBCw==",
  "bitfield": 1
}

looks like it thinks it's decrypting it but the packet data is empty, at least for messages

here's what it looks like on meshview: https://meshview.meshstl.org/packet/973948163

I added some extra logging to see what's going wrong: ``` Trying to decrypt packet 973948163 from node 2733363988 with key 1PG7OiApB1nwvP+rz05pAQ== Decryption failed for packet 973948163 from node 2733363988 Trying to decrypt packet 973948163 from node 2733363988 with key ***KEY HIDDEN*** Decryption successful for packet 973948163 from node 2733363988 Decrypted packet data: {} Trying to decrypt packet 973948163 from node 2733363988 with key 1PG7OiApB1nwvP+rz05pAQ== Decryption failed for packet 973948163 from node 2733363988 Trying to decrypt packet 973948163 from node 2733363988 with key ***KEY HIDDEN*** Decryption successful for packet 973948163 from node 2733363988 Decrypted packet data: {} Trying to decrypt packet 93343320 from node 2997350440 with key 1PG7OiApB1nwvP+rz05pAQ== Decryption successful for packet 93343320 from node 2997350440 Decrypted packet data: portnum: POSITION_APP payload: "\r\000\000\020\027\025\000\0000\312\030\215\002%\t8ui(\002X\335\005x\000\200\001\000\230\001\006\270\001\013" bitfield: 1 { "portnum": "POSITION_APP", "payload": "DQAAEBcVAAAwyhiNAiUJOHVpKAJY3QV4AIABAJgBBrgBCw==", "bitfield": 1 } Trying to decrypt packet 93343320 from node 2997350440 with key 1PG7OiApB1nwvP+rz05pAQ== Decryption successful for packet 93343320 from node 2997350440 Decrypted packet data: portnum: POSITION_APP payload: "\r\000\000\020\027\025\000\0000\312\030\215\002%\t8ui(\002X\335\005x\000\200\001\000\230\001\006\270\001\013" bitfield: 1 { "portnum": "POSITION_APP", "payload": "DQAAEBcVAAAwyhiNAiUJOHVpKAJY3QV4AIABAJgBBrgBCw==", "bitfield": 1 } ``` looks like it thinks it's decrypting it but the packet data is empty, at least for messages here's what it looks like on meshview: https://meshview.meshstl.org/packet/973948163 <!-- github-comment-id:3795570748 -->
Author
Owner

Just updated the code and it seems to decode for my testing. Would you update your repository and test?

Just updated the code and it seems to decode for my testing. Would you update your repository and test? <!-- github-comment-id:3796024681 -->
Author
Owner

did you try to make it work?

did you try to make it work? <!-- github-comment-id:3814166537 -->
Author
Owner

It does decrypt, now, but just doesn't show the correct channel name as of the last update I looked at a few days back

It does decrypt, now, but just doesn't show the correct channel name as of the last update I looked at a few days back <!-- github-comment-id:3815663392 -->
Author
Owner

Can you confirm behavior with the latest update

Can you confirm behavior with the latest update <!-- github-comment-id:3854151930 -->
Author
Owner

Done

Done <!-- github-comment-id:3857544556 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshview#39