UltraScan III
List of all members | Static Public Member Functions
US_Crypto Class Reference

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 &)
 

Detailed Description

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.

Member Function Documentation

QString US_Crypto::decrypt ( const QString &  ciphertext,
const QString &  pw,
const QString &  initVector 
)
static

A static function to decrypt a string.

Parameters
ciphertextThe string to be encrypted.
pwPassword used to encrypt the string
initVectorAn initialization string used when the string was encrypted.
Return values
plaintextThe plaintext password.

Definition at line 58 of file us_crypto.cpp.

QStringList US_Crypto::encrypt ( const QString &  plain_text,
const QString &  pw 
)
static

A static function to encrypt a password string.

Parameters
plain_textThe string to be encrypted.
pwThe password to use for encryption
Return values
encryptionDataA 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.


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