bluerobotics / companion

Companion computer startup scripts and examples
https://www.ardusub.com/operators-manual/companion-web.html
GNU General Public License v3.0
48 stars 54 forks source link

network manager: do not store plaintext wifi passwords #362

Closed jaxxzer closed 3 years ago

jaxxzer commented 3 years ago

wifi psks should be produced by wpa_passphrase so that plaintext passwords are not saved.

jaxxzer commented 3 years ago

This should be pretty straightforward to implement: http://docs.ros.org/diamondback/api/wpa_supplicant/html/wpa__passphrase_8c_source.html

there are some python libraries to do the hash like hashlib and passlib: https://stackoverflow.com/questions/46502224/python-wpa-passphrase-linux-binary-implementation-generates-only-part-of-the-p