ESP8266 Developer Zone The Official ESP8266 Forum 2020-09-05T05:02:27+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=58008 2020-09-05T05:02:27+08:00 2020-09-05T05:02:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=58008&p=86789#p86789 <![CDATA[Re: esp-now: How can I find out if a message is encrypted or not?]]>
thanks. After thorough testing, esp-now turned out to be that unreliable so we removed this option altogether.

Statistics: Posted by blubb — Sat Sep 05, 2020 5:02 am


]]>
2020-08-20T11:33:19+08:00 2020-08-20T11:33:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=58008&p=85681#p85681 <![CDATA[Re: esp-now: How can I find out if a message is encrypted or not?]]> For instance, When sending a packet

Data+Auth

If the Auth package matches your algorithm then you can trust it, but only up until someone else finds it out but if you can keep that secret then your fine. When you receive a package from the sender you'll look at the Auth code after the data (or before), crunch the same algorithm which is essentially you key in this example and confirm that that value matches the sender's Mac and call it good. That way if someone sniffs that value they will have to spoof the mac at least or figure out the algorithm by hand(don't count on this unless they have clues), but if you're trying to prevent those two from happening then you're going to be chasing a tail at some point where you just can't do much more without adding other infrastructure in the mix.

Statistics: Posted by AgentSmithers — Thu Aug 20, 2020 11:33 am


]]>
2020-05-16T22:08:54+08:00 2020-05-16T22:08:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=58008&p=78644#p78644 <![CDATA[esp-now: How can I find out if a message is encrypted or not?]]>
esp_now_add_peer(MAC1, ESP_NOW_ROLE_COMBO, CHANNEL, key, sizeof(key));

Now the problem is, I can still receive unencrypted messages, e.g. broadcast messages. And there is no way I can find out that they actually were unencrypted! So any attacker can easily forge messages that switch on and off my devices. How do I prevent that?

Statistics: Posted by blubb — Sat May 16, 2020 10:08 pm


]]>