Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Enable RF24 Encryption with mysensors V2.x

Enable RF24 Encryption with mysensors V2.x

Scheduled Pinned Locked Moved General Discussion
21 Posts 7 Posters 6.3k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nicklas Starkel

    @Anticimex

    ahh, so basically the gateway will always accept everything, but nodes will not if signing is enabled.

    Maybe it's a longshot, but I was worried that if someone knows my MQTT pathways they would be able to
    1: Use a node and send information (ex MQTT/MyActuator/TurnON)
    2: The gateway picks it up and converts to MQTT information and publish to MQTT broker
    3: My actuator subscribes to this special channel and gets the "TurnON"
    And then for example turns on my lights or whatever.

    While I was writing this I realize more and more that the above is pretty far fetched :)
    Also, I have separated MySensors channel from other channels so they should be safe.

    But to be on the safe side and there seems not to be any apparent drawbacks, I will use Whitelisting as well.
    Thank you for the help @Anticimex !

    AnticimexA Offline
    AnticimexA Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #12

    @Nicklas-Starkel you're welcome. This behaviour is because we did not want to turn a gw that require signatures useless to nodes that for any reason cannot use signing. It could be that this is changed at some point on the future so that a gw that require signatures does it for all nodes. But for now it doesn't for backwards compatibility. And it is considered that signing first of all is used for data going out to a node. Typically an actuator. And yes, whitelisting can also be added to further strengthen security if you fear nodes could be hijacked.
    I'm glad the features are being used :)

    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

    1 Reply Last reply
    1
    • S Offline
      S Offline
      Sharath B Krishna
      wrote on last edited by
      #13

      Have one query... by just enabling the RF24 Encryption with the MY ENCRYPTION SIMPLE PASSWORD, is it required that all nodes have it set along with the gateway?

      can a non encryption enabled node communicate with the gateway(encryption enabled) ? like we have with the signing ?

      mfalkviddM 1 Reply Last reply
      0
      • S Sharath B Krishna

        Have one query... by just enabling the RF24 Encryption with the MY ENCRYPTION SIMPLE PASSWORD, is it required that all nodes have it set along with the gateway?

        can a non encryption enabled node communicate with the gateway(encryption enabled) ? like we have with the signing ?

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #14

        Welcome to the MySensors community @sharath-b-krishna. Great to have you here.

        from the documentation:

        #define MY_RF24_ENABLE_ENCRYPTION
        Define this to enable software based AES encryption.

        All nodes and gateway must have this enabled, and all must be personalized with the same AES key.

        S 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          Welcome to the MySensors community @sharath-b-krishna. Great to have you here.

          from the documentation:

          #define MY_RF24_ENABLE_ENCRYPTION
          Define this to enable software based AES encryption.

          All nodes and gateway must have this enabled, and all must be personalized with the same AES key.

          S Offline
          S Offline
          Sharath B Krishna
          wrote on last edited by
          #15

          @mfalkvidd thanks , I understand its necessary since nodes with encryption need to communicate... but what is not clear is .....is it possible for nodes without encryption enabled also to communicate to gateway ?

          like how nodes without signing enabled can still communicate with the gateway ..

          AnticimexA 1 Reply Last reply
          0
          • S Sharath B Krishna

            @mfalkvidd thanks , I understand its necessary since nodes with encryption need to communicate... but what is not clear is .....is it possible for nodes without encryption enabled also to communicate to gateway ?

            like how nodes without signing enabled can still communicate with the gateway ..

            AnticimexA Offline
            AnticimexA Offline
            Anticimex
            Contest Winner
            wrote on last edited by
            #16

            @sharath-b-krishna no, as encryption is done in the physical layer while signing is done in the routing layer.
            Encryption applies to ALL messages at ALL times so a gw has now way of distinguishing a node that encrypts messages from a node that doesn't.
            Signing is done conditionally depending on requirements exchanged between gw and node and also on certain types of messages.
            Security is guaranteed by persistent storage on the GW side of nodes that communicate certain signing requirements so rogue nodes cannot just tell the GW to reset the requirements for a node if signing has been enabled at any point in history without physical access to the gw.
            Encryption does not do any of this logic as it implies that certain messages has to be exchanged between gw and node which both need to "understand".

            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

            1 Reply Last reply
            0
            • alowhumA Offline
              alowhumA Offline
              alowhum
              Plugin Developer
              wrote on last edited by
              #17

              @Sharath-B-Krishna In other words: it's all or nothing :-)

              AnticimexA 1 Reply Last reply
              0
              • alowhumA alowhum

                @Sharath-B-Krishna In other words: it's all or nothing :-)

                AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #18

                @alowhum @Sharath-B-Krishna yes, at least if we are talking a single gw setup. It is possible to use two gw:s to have two separate networks. One can be encrypted and the other plain.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  Sharath B Krishna
                  wrote on last edited by
                  #19

                  @anticimex said in Enable RF24 Encryption with mysensors V2.x:

                  could

                  thanks @Anticimex ... also is the Encryption simple password stored in the eeprom? would be easily readable with a eeprom read program ?

                  AnticimexA 1 Reply Last reply
                  0
                  • S Sharath B Krishna

                    @anticimex said in Enable RF24 Encryption with mysensors V2.x:

                    could

                    thanks @Anticimex ... also is the Encryption simple password stored in the eeprom? would be easily readable with a eeprom read program ?

                    AnticimexA Offline
                    AnticimexA Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #20

                    @sharath-b-krishna no, the simple options have all secrets stored in the sketch, so don't put your production code on github if you plan to use that :)

                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Sharath B Krishna
                      wrote on last edited by
                      #21

                      thanks @Anticimex

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      19

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular