Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Configured wifi connection save and retrieve from qfile in qt



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


  • Lifetime Qt Champion

    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.


  • Lifetime Qt Champion

    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.


Log in to reply