17#ifndef QGSAUTHCRYPTO_H
18#define QGSAUTHCRYPTO_H
37 static bool isDisabled();
40 static const QString encrypt(
const QString &pass,
const QString &cipheriv,
const QString &text );
43 static const QString decrypt(
const QString &pass,
const QString &cipheriv,
const QString &text );
46 static void passwordKeyHash(
const QString &pass,
49 QString *cipheriv =
nullptr );
52 static bool verifyPasswordKeyHash(
const QString &pass,
55 QString *hashderived =
nullptr );
58 static QString encryptdecrypt(
const QString &passstr,
59 const QString &cipheriv,
60 const QString &textstr,
Functions for hashing/checking master password and encrypt/decrypting data with password.