A class to encrypt and decrypt the user's database passwords. More...
#include "us_crypto.h"
Static Public Member Functions | |
static QStringList | encrypt (const QString &, const QString &) |
static QString | decrypt (const QString &, const QString &, const QString &) |
A class to encrypt and decrypt the user's database passwords.
The class uses the master password and the AES-128 encryption algorithm. The password is automatically retrieved from global memory vi US_Global. If the master password is not yet in global memory, US_Global prompts the user for it.
Definition at line 16 of file us_crypto.h.
|
static |
A static function to decrypt a string.
ciphertext | The string to be encrypted. |
pw | Password used to encrypt the string |
initVector | An initialization string used when the string was encrypted. |
plaintext | The plaintext password. |
Definition at line 58 of file us_crypto.cpp.
|
static |
A static function to encrypt a password string.
plain_text | The string to be encrypted. |
pw | The password to use for encryption |
encryptionData | A list of two strings containing the ciphertext of the password and the initialization vector used during encryption. |
Definition at line 6 of file us_crypto.cpp.