17 #ifndef QGSAUTHCRYPTO_H
18 #define QGSAUTHCRYPTO_H
25 #include "qgis_core.h"
38 static bool isDisabled();
41 static const QString encrypt(
const QString &pass,
const QString &cipheriv,
const QString &text );
44 static const QString decrypt(
const QString &pass,
const QString &cipheriv,
const QString &text );
47 static void passwordKeyHash(
const QString &pass,
50 QString *cipheriv =
nullptr );
53 static bool verifyPasswordKeyHash(
const QString &pass,
56 QString *hashderived =
nullptr );
59 static QString encryptdecrypt(
const QString &passstr,
60 const QString &cipheriv,
61 const QString &textstr,
Functions for hashing/checking master password and encrypt/decrypting data with password.