|
libquentier 0.8.0
The library for rich desktop clients of Evernote service
|
The IEncryptor interface provides encryption and decryption functionality which is compatible with that used by Evernote service. More...
#include <IEncryptor.h>
Public Types | |
| enum class | Cipher { RC2 , AES } |
Public Member Functions | |
| virtual Result< QString, ErrorString > | encrypt (const QString &text, const QString &passphrase)=0 |
| virtual Result< QString, ErrorString > | decrypt (const QString &encryptedText, const QString &passphrase, Cipher cipher)=0 |
Friends | |
| QUENTIER_EXPORT QDebug & | operator<< (QDebug &dbg, Cipher cipher) |
| QUENTIER_EXPORT QTextStream & | operator<< (QTextStream &strm, Cipher cipher) |
The IEncryptor interface provides encryption and decryption functionality which is compatible with that used by Evernote service.
|
pure virtual |
Decrypt previously encrypted text fragment
| encryptedText | Encrypted text to decrypt |
| passphrase | Passhprase used to encrypt text |
| cipher | Cipher used to encrypt text |
|
pure virtual |
Encrypt text fragment using AES cipher (RC2 cipher is only used for decryption)
| text | Text to encrypt |
| passphrase | Passphrase which can be used to decrypt the text |