diff --git a/include/transport/storagebackend.h b/include/transport/storagebackend.h index 5289010447dea048ab47ae4fb6b00abc1f934bc6..a5d101be206572146936bdf8415b4a9690e1b76a 100644 --- a/include/transport/storagebackend.h +++ b/include/transport/storagebackend.h @@ -86,6 +86,14 @@ class Config; class StorageBackend { public: + static std::string encryptPassword(const std::string &password, const std::string &key); + + static std::string decryptPassword(std::string &encrypted, const std::string &key); + + static std::string serializeGroups(const std::vector &groups); + + static std::vector deserializeGroups(std::string &groups); + /// Virtual desctructor. virtual ~StorageBackend() {}