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. Development
  3. difference between encryption with personalization and simple password

difference between encryption with personalization and simple password

Scheduled Pinned Locked Moved Development
17 Posts 6 Posters 169 Views 5 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.
  • TRS-80T Offline
    TRS-80T Offline
    TRS-80
    wrote on last edited by
    #6

    ^ Well, there is the man, right there (Anticimex). ^ :)

    You are in much better hands now, I will go back to trying to follow along and learn, as most of that reply still went over my head. :D

    AnticimexA 1 Reply Last reply
    0
    • TRS-80T TRS-80

      ^ Well, there is the man, right there (Anticimex). ^ :)

      You are in much better hands now, I will go back to trying to follow along and learn, as most of that reply still went over my head. :D

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

      @TRS-80 well thanks :) the condensed answer is, use personalization if you can, as that is more private than the simple password flag. And if you plan to use OTA, dualoptiboot is the safest approach to leverage mysensors library features such as signing and encryption.

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

      1 Reply Last reply
      1
      • AndurilA Offline
        AndurilA Offline
        Anduril
        wrote on last edited by
        #8

        @Anticimex is there a way to use both methods in one network? So to personalize nodes with the AES key (0x12; 0x34; 0x56; 0x00;...) and use SIMPLE_PASSWD "123456" (or some other derivativ)?

        AnticimexA 1 Reply Last reply
        0
        • AndurilA Anduril

          @Anticimex is there a way to use both methods in one network? So to personalize nodes with the AES key (0x12; 0x34; 0x56; 0x00;...) and use SIMPLE_PASSWD "123456" (or some other derivativ)?

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

          @Anduril yes that should be possible. Just make sure that the nodes that are personalized are configured with the same settings the simple flag enable "under the hood".

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

          1 Reply Last reply
          0
          • AndurilA Offline
            AndurilA Offline
            Anduril
            wrote on last edited by
            #10

            wow... to be honest I didn't expected it to be so easy... what flags are those "under the hood" settings?

            AnticimexA 1 Reply Last reply
            0
            • AndurilA Anduril

              wow... to be honest I didn't expected it to be so easy... what flags are those "under the hood" settings?

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

              @Anduril I don't remember actually but just greping on the define should reveal that.

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

              1 Reply Last reply
              0
              • SuperNinjaS Offline
                SuperNinjaS Offline
                SuperNinja
                wrote on last edited by
                #12

                @Anduril said in difference between encryption with personalization and simple password:

                #define MY_RFM69_ENABLE_ENCRYPTION

                @Anticimex
                Interesting, I'm going to make a remote control for my gate with an RFM69HCW, obviously I don't want the signal to be sniffed and copied.

                I am new to MySensors, Is :

                #define MY_RFM69_ENABLE_ENCRYPTION
                #define MY_SECURITY_SIMPLE_PASSWD "testpass"
                

                is simply enough?
                What to add if not secure enough?

                AnticimexA 1 Reply Last reply
                0
                • SuperNinjaS SuperNinja

                  @Anduril said in difference between encryption with personalization and simple password:

                  #define MY_RFM69_ENABLE_ENCRYPTION

                  @Anticimex
                  Interesting, I'm going to make a remote control for my gate with an RFM69HCW, obviously I don't want the signal to be sniffed and copied.

                  I am new to MySensors, Is :

                  #define MY_RFM69_ENABLE_ENCRYPTION
                  #define MY_SECURITY_SIMPLE_PASSWD "testpass"
                  

                  is simply enough?
                  What to add if not secure enough?

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

                  @SuperNinja if memory serves me, you only need the simple flag. You can read more in the doxygen site: https://www.mysensors.org/apidocs/group__SecuritySettingGrpPub.html

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

                  1 Reply Last reply
                  0
                  • AndurilA Offline
                    AndurilA Offline
                    Anduril
                    wrote on last edited by Anduril
                    #14

                    @SuperNinja you only need #define MY_SECURITY_SIMPLE_PASSWD "testpass". The other one would be needed for encryption wih personalization (so keys saved in eeprom or atsha-chip)

                    @Anticimex is there a way to give the SIMPLE_PASSWD in hex? As far as I understand the AES key in the personalizer sketch is a hex and the password in sketch would be ASCII. Therefor even if looking identical they would not match. Or do I have to create a password first and convert that to hex to be used in personalization...

                    AnticimexA 1 Reply Last reply
                    0
                    • AndurilA Anduril

                      @SuperNinja you only need #define MY_SECURITY_SIMPLE_PASSWD "testpass". The other one would be needed for encryption wih personalization (so keys saved in eeprom or atsha-chip)

                      @Anticimex is there a way to give the SIMPLE_PASSWD in hex? As far as I understand the AES key in the personalizer sketch is a hex and the password in sketch would be ASCII. Therefor even if looking identical they would not match. Or do I have to create a password first and convert that to hex to be used in personalization...

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

                      @Anduril I do not thing there is a limitation as long as the value of the define is in legal c code initializer format. The preprocessor will "paste" your define where it is mentioned so you can search the code for it to see where it is used. I do not recall there being any logic that assume ascii in the define.

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

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        evb
                        wrote on last edited by
                        #16

                        In the past, I did several tests about signing and encryption.
                        The results and my thoughts, you can find them here: https://forum.mysensors.org/topic/10382/security-signing-messages-and-encryption-of-messages-a-guide-or-more-a-summary-of-my-tests?_=1604220215583
                        Maybe it can help :-)

                        SuperNinjaS 1 Reply Last reply
                        1
                        • E evb

                          In the past, I did several tests about signing and encryption.
                          The results and my thoughts, you can find them here: https://forum.mysensors.org/topic/10382/security-signing-messages-and-encryption-of-messages-a-guide-or-more-a-summary-of-my-tests?_=1604220215583
                          Maybe it can help :-)

                          SuperNinjaS Offline
                          SuperNinjaS Offline
                          SuperNinja
                          wrote on last edited by
                          #17

                          @Anticimex , @Anduril Thanks for this response
                          @evb great job, here is an easy to understand summary for beginners like me. Thanks

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


                          21

                          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