diff --git a/include/transport/util.h b/include/transport/util.h index e5fc086fbfe11aa853977d6276063cd5e3f2e262..79d52a479e4acac3da2e1433a245a09a207c0333 100644 --- a/include/transport/util.h +++ b/include/transport/util.h @@ -24,6 +24,7 @@ #include #include #include +#include "Swiften/StringCodecs/Base64.h" namespace Transport { @@ -31,6 +32,10 @@ namespace Util { void removeEverythingOlderThan(const std::vector &dirs, time_t t); +std::string encryptPassword(const std::string &password, const std::string &key); + +std::string decryptPassword(std::string &encrypted, const std::string &key); + } }