mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
removed unnecessary method
This commit is contained in:
@@ -135,13 +135,3 @@ void Protector::decryptFile(const QString &filePath, const QString &password)
|
|||||||
qWarning() << "Decryption failed:" << e.what();
|
qWarning() << "Decryption failed:" << e.what();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Protector::resetPassword(const QString &filePath, const QString &password)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
decryptFile(filePath, password);
|
|
||||||
qInfo() << "Password removed from file:" << filePath;
|
|
||||||
} catch (const std::exception &e) {
|
|
||||||
qWarning() << "Reset failed:" << e.what();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ public:
|
|||||||
|
|
||||||
Q_INVOKABLE static void encryptFile(const QString &filePath, const QString &password);
|
Q_INVOKABLE static void encryptFile(const QString &filePath, const QString &password);
|
||||||
Q_INVOKABLE static void decryptFile(const QString &filePath, const QString &password);
|
Q_INVOKABLE static void decryptFile(const QString &filePath, const QString &password);
|
||||||
Q_INVOKABLE static void resetPassword(const QString &filePath, const QString &password);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static QByteArray deriveKey(const QString &password, const QByteArray &salt);
|
static QByteArray deriveKey(const QString &password, const QByteArray &salt);
|
||||||
|
|||||||
Reference in New Issue
Block a user