Go to the documentation of this file.
116 bool hasKey()
const {
return !m_keyParts.isEmpty(); }
214 CryptoFlagCompression = 0x01,
215 CryptoFlagChecksum = 0x02,
216 CryptoFlagHash = 0x04
224 QVector<char> m_keyParts;
229 Q_DECLARE_OPERATORS_FOR_FLAGS(SimpleCrypt::CryptoFlags)
@ ProtectionChecksum
Definition: simplecrypt.h:81
QByteArray encryptToByteArray(const QString &plaintext)
@ ErrorNoKeySet
Definition: simplecrypt.h:91
CompressionMode
Definition: simplecrypt.h:65
void setIntegrityProtectionMode(IntegrityProtectionMode mode)
Definition: simplecrypt.h:136
Q_DECLARE_FLAGS(CryptoFlags, CryptoFlag)
@ ErrorUnknownVersion
Definition: simplecrypt.h:92
CompressionMode compressionMode() const
Definition: simplecrypt.h:128
void setCompressionMode(CompressionMode mode)
Definition: simplecrypt.h:124
CryptoFlag
Definition: simplecrypt.h:212
@ ProtectionNone
Definition: simplecrypt.h:80
QString encryptToString(const QString &plaintext)
QByteArray encryptToByteArray(QByteArray plaintext)
@ CompressionAlways
Definition: simplecrypt.h:67
IntegrityProtectionMode integrityProtectionMode() const
Definition: simplecrypt.h:140
Error
Definition: simplecrypt.h:89
QByteArray decryptToByteArray(const QString &cyphertext)
Simple encryption and decryption of strings and byte arrays.
Definition: simplecrypt.h:58
QString encryptToString(QByteArray plaintext)
@ CompressionAuto
Definition: simplecrypt.h:66
QByteArray decryptToByteArray(QByteArray cypher)
Error lastError() const
Definition: simplecrypt.h:145
@ ErrorIntegrityFailed
Definition: simplecrypt.h:93
QString decryptToString(QByteArray cypher)
IntegrityProtectionMode
Definition: simplecrypt.h:79
QString decryptToString(const QString &cyphertext)
@ ErrorNoError
Definition: simplecrypt.h:90
bool hasKey() const
Definition: simplecrypt.h:116