QGIS API Documentation  2.12.0-Lyon
Static Public Member Functions | List of all members
QgsAuthCrypto Class Reference

Funtions for hashing/checking master password and encrypt/decrypting data with password. More...

#include <qgsauthcrypto.h>

Static Public Member Functions

static const QString decrypt (const QString &pass, const QString &cipheriv, const QString &text)
 Decrypt data using master password. More...
 
static const QString encrypt (const QString &pass, const QString &cipheriv, const QString &text)
 Encrypt data using master password. More...
 
static bool isDisabled ()
 Whether QCA has the qca-ossl plugin, which a base run-time requirement. More...
 
static void passwordKeyHash (const QString &pass, QString *salt, QString *hash, QString *cipheriv=0)
 Generate SHA256 hash for master password, with iterations and salt. More...
 
static bool verifyPasswordKeyHash (const QString &pass, const QString &salt, const QString &hash, QString *hashderived=0)
 Verify existing master password hash to a re-generated one. More...
 

Detailed Description

Funtions for hashing/checking master password and encrypt/decrypting data with password.

Since
2.8

Definition at line 26 of file qgsauthcrypto.h.

Member Function Documentation

const QString QgsAuthCrypto::decrypt ( const QString pass,
const QString cipheriv,
const QString text 
)
static

Decrypt data using master password.

Definition at line 54 of file qgsauthcrypto.cpp.

const QString QgsAuthCrypto::encrypt ( const QString pass,
const QString cipheriv,
const QString text 
)
static

Encrypt data using master password.

Definition at line 46 of file qgsauthcrypto.cpp.

bool QgsAuthCrypto::isDisabled ( )
static

Whether QCA has the qca-ossl plugin, which a base run-time requirement.

Definition at line 36 of file qgsauthcrypto.cpp.

void QgsAuthCrypto::passwordKeyHash ( const QString pass,
QString salt,
QString hash,
QString cipheriv = 0 
)
static

Generate SHA256 hash for master password, with iterations and salt.

Definition at line 69 of file qgsauthcrypto.cpp.

bool QgsAuthCrypto::verifyPasswordKeyHash ( const QString pass,
const QString salt,
const QString hash,
QString hashderived = 0 
)
static

Verify existing master password hash to a re-generated one.

Definition at line 93 of file qgsauthcrypto.cpp.


The documentation for this class was generated from the following files: