added storing password in a secure way

This commit is contained in:
2023-03-09 18:13:46 +01:00
parent bc90ce2269
commit fada0ebeb0
8 changed files with 101 additions and 118 deletions
+10 -4
View File
@@ -5,7 +5,12 @@
#include <qt5keychain/keychain.h>
#include <qt5keychain/qkeychain_export.h>
class Password : QObject
extern QApplication a;
void setPassword(QString account, QString pass);
QString getPassword(const QString& name);
/*class Password : QObject
{
public:
QString appName;
@@ -13,6 +18,7 @@ class Password : QObject
QKeychain::ReadPasswordJob * readPass;
MainWindow * mw;
QString password;
QSettings passwdSettings{a.applicationName(),a.applicationName()};
Password();
~Password();
@@ -22,8 +28,8 @@ class Password : QObject
bool remove(QString);
private slots:
void finished(QKeychain::Job*);
void readReturn();
};
void storeFinished();
void readFinished();
};*/
#endif // PASSWORD_H