public:
Cipher();
explicit Cipher(QByteArray key, QString cipherType = QString("blowfish"));
- ~Cipher();
QByteArray decrypt(QByteArray cipher);
QByteArray decryptTopic(QByteArray cipher);
bool encrypt(QByteArray &cipher);
bool setType(const QString &type);
QString type() { return m_type; }
static bool neededFeaturesAvailable();
+ inline bool usesCBC() { return m_cbc; }
private:
//direction is true for encrypt, false for decrypt