#include #include "cryptopp_inc.h" #include "IAESEncryption.h" class AESEncryption : public IAESEncryption { public: AESEncryption(const std::string &password, bool hash_password); ~AESEncryption(); std::string encrypt(const std::string &data); virtual std::string encrypt(char *data, size_t data_size); virtual std::string encrypt(const char *data, size_t data_size); private: bool iv_done; CryptoPP::SecByteBlock m_sbbKey; CryptoPP::SecByteBlock m_IV; CryptoPP::CFB_Mode::Encryption *enc; };