mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
update: files encrypt on export and files data decrypt on import
This commit is contained in:
@@ -15,15 +15,16 @@ public:
|
||||
static bool readFile(const QString &fileName, QByteArray &data);
|
||||
static bool readFile(const QString &fileName, QString &data);
|
||||
|
||||
static bool encryptFile(const QString &filePath, const QString &password, const QString &hint, QString *error = nullptr);
|
||||
static bool encryptFile(const QString &filePath, const QString &password, const QString &hint);
|
||||
|
||||
public slots:
|
||||
QString getFileName(const QString &acceptLabel, const QString &nameFilter, const QString &selectedFile = "",
|
||||
const bool isSaveMode = false, const QString &defaultSuffix = "");
|
||||
|
||||
bool decryptFile(const QString &filePath, const QString &password, QString *error = nullptr);
|
||||
QByteArray getDecryptedData(const QString &filePath, const QString &password);
|
||||
|
||||
bool isFileEncrypted(const QString &filePath);
|
||||
bool isPasswordValid(const QString &filePath, const QString &password);
|
||||
QString readHint(const QString &filePath);
|
||||
|
||||
void setQmlRoot(QObject *qmlRoot);
|
||||
|
||||
Reference in New Issue
Block a user