#ifndef CRYFS_SRC_CONFIG_CRYCONFIGCREATOR_H #define CRYFS_SRC_CONFIG_CRYCONFIGCREATOR_H #include #include #include #include "CryConfig.h" namespace cryfs { class CryConfigCreator final { public: CryConfigCreator(cpputils::unique_ref console, cpputils::RandomGenerator &encryptionKeyGenerator); CryConfig create(); private: std::string _generateCipher(); std::string _generateEncKey(const std::string &cipher); std::string _generateRootBlobKey(); bool _showWarningForCipherAndReturnIfOk(const std::string &cipherName); cpputils::unique_ref _console; cpputils::RandomGenerator &_encryptionKeyGenerator; DISALLOW_COPY_AND_ASSIGN(CryConfigCreator); }; } #endif