Esp-idf: smart config security (IDFGH-121)

Created on 24 Nov 2017  路  7Comments  路  Source: espressif/esp-idf

I am looking at smart config and wondering how secure it is.

As it seems to me the ssid and password is send cleartext
Is it possible to encrypt the data using an aes key?

Most helpful comment

@tdesmet @b1gtang @SteveOfTheStow @kyrulkamal @thefat32

We will add aes encryption for smartconfig in v4.3, which will called esp-touch-v2

All 7 comments

@tdesmet It is unidirectional communication, you can use fix Key to encrypt the SSID and Password. Smart config is not a standard protocol, blufi will be better than smart config, you can find an example for blufi.

I suggest that the official can add AES encryption in the smart config library, the user can call the API, in order to avoid code redundancy, this part of the code should not be achieved by the users.

@b1gtang Yes, we are considering make more part of code in smart config open source.

+1 for baking encryption into SmartConfig

Any update regarding this issue?

As far as I understand, being an unidirectional comm. The best security you could get is a hardcoded key in your mobile app and your ESP firmware. This is not secure at all. It's a bit harder to crack than clear text. But not secure. To make a protocol secure you need to implement a proper handshake between involved parts.

@tdesmet @b1gtang @SteveOfTheStow @kyrulkamal @thefat32

We will add aes encryption for smartconfig in v4.3, which will called esp-touch-v2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

okasha55 picture okasha55  路  3Comments

waayst picture waayst  路  4Comments

feelfreelinux picture feelfreelinux  路  4Comments

LosDeiblos picture LosDeiblos  路  4Comments

me21 picture me21  路  3Comments