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

   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>"}}
   ```


-- 
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