libquentier  0.4.0
The library for rich desktop clients of Evernote service
Public Slots | Signals | Public Member Functions | List of all members
quentier::EncryptionManager Class Reference

The EncryptionManager class provides both synchronous methods to encrypt or decrypt given text with password, cipher and key length and their signal-slot based potentially asynchronous counterparts. More...

#include <EncryptionManager.h>

Inheritance diagram for quentier::EncryptionManager:
Inheritance graph
[legend]
Collaboration diagram for quentier::EncryptionManager:
Collaboration graph
[legend]

Public Slots

void onDecryptTextRequest (QString encryptedText, QString passphrase, QString cipher, size_t keyLength, QUuid requestId)
 
void onEncryptTextRequest (QString textToEncrypt, QString passphrase, QString cipher, size_t keyLength, QUuid requestId)
 

Signals

void decryptedText (QString text, bool success, ErrorString errorDescription, QUuid requestId)
 
void encryptedText (QString encryptedText, bool success, ErrorString errorDescription, QUuid requestId)
 

Public Member Functions

 EncryptionManager (QObject *parent=Q_NULLPTR)
 
bool decrypt (const QString &encryptedText, const QString &passphrase, const QString &cipher, const size_t keyLength, QString &decryptedText, ErrorString &errorDescription)
 
bool encrypt (const QString &textToEncrypt, const QString &passphrase, QString &cipher, size_t &keyLength, QString &encryptedText, ErrorString &errorDescription)
 

Detailed Description

The EncryptionManager class provides both synchronous methods to encrypt or decrypt given text with password, cipher and key length and their signal-slot based potentially asynchronous counterparts.