QgsAuthCrypto class
Functions for hashing/checking master password and encrypt/decrypting data with password.
Contents
- Reference
Public static functions
- static auto decrypt(const QString& pass, const QString& cipheriv, const QString& text) -> const QString
- Decrypt data using master password.
- static auto encrypt(const QString& pass, const QString& cipheriv, const QString& text) -> const QString
- Encrypt data using master password.
- static auto isDisabled() -> bool
- Whether QCA has the qca-ossl plugin, which a base run-time requirement.
- static void passwordKeyHash(const QString& pass, QString* salt, QString* hash, QString* cipheriv = nullptr)
- Generate SHA256 hash for master password, with iterations and salt.
- static auto verifyPasswordKeyHash(const QString& pass, const QString& salt, const QString& hash, QString* hashderived = nullptr) -> bool
- Verify existing master password hash to a re-generated one.