|
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.
|
strong |
Cipher used for encryption/decryption
| Enumerator | |
|---|---|
| RC2 | RC2 64 bit block cipher |
| AES | AES 128 bit block cipher |
|
nodiscardpure virtual |
|
nodiscardpure 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 |