Configured wifi connection save and retrieve from qfile in qt
-
wrote on 4 Dec 2015, 04:59 last edited by
Hi,
In my qt application I have to save available wifi connections and their passwords to file, if I click already configured wifi connection ssid name it should compare with file and it should take the respective password from file. I have multiple wifi connections all should work like this. please help me to achieve.Thanks for advance.
-
What is the problem?
You store all known wifi networks in a file (for example SSID - password combination in each row).
Later your application opens the file reads the content in, for example, a hash/map (SSID as key, password as value), and uses this hash/map to search for a SSID. All you need is QFile, QHash or QMap. -
Hi,
To add to @jsulm, please consider the security hole you might be creating with your application. Storing SSID's and passwords in plain text is a bad idea.
1/3