fdcavalcanti commented on issue #18710:
URL: https://github.com/apache/nuttx/issues/18710#issuecomment-4225644924

   > > How about we hide the password on the `wapi.conf`, unless we explicitly 
build with some option such as `CONFIG_WIRELESS_WAPI_SHOW_PSK`?
   > > Could look something like this:
   > > ```
   > > 
   > > if WIRELESS_WAPI_INITCONF
   > > 
   > > config WIRELESS_WAPI_CONFIG_PATH
   > >  string "Wireless Wapi Configure File Path"
   > >  default "/data/wapi.conf"
   > > 
   > > config WIRELESS_WAPI_SHOW_PSK
   > >  string "Show password in plain text inside wapi.conf file"
   > >  default n
   > > 
   > > endif # WIRELESS_WAPI_INITCONF
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > If built with `WIRELESS_WAPI_SHOW_PSK=n`, it would show like:
   > > ```
   > > nsh> cat /data/wapi.conf
   > > 
{"wlan0":{"mode":2,"auth":4,"cmode":8,"alg":3,"ssid":"Nuttx-IOT","bssid":"e0:1c:fc:00:??:??","psk":"<hidden>"}}
   > > ```
   > 
   > Right, so WIRELESS_WAPI_SHOW_PSK=n already provide some protection, right? 
My idea was to keep it there encrypted or as currently implemented on security 
systems: a hash of the encrypted password to avoid breaking it with brute force 
(dictionary + GPU, etc).
   > 
   > Seems like we don't have details about PSK storage yet: 
https://nuttx.apache.org/docs/latest/search.html?q=WIRELESS_WAPI_SHOW_PSK&check_keywords=yes&area=default
 
https://nuttx.apache.org/docs/latest/search.html?q=wapi.conf&check_keywords=yes&area=default#
 https://nuttx.apache.org/docs/latest/applications/wireless/wapi/wireless.html
   
   Sorry maybe I wasn't clear. `WIRELESS_WAPI_SHOW_PSK` does not exist, that 
was my simple approach proposal :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to