00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 #include <vector>
00010 #include <string>
00011
00012 #include <Swiften/Base/API.h>
00013 #include <Swiften/Base/ByteArray.h>
00014 #include <Swiften/Base/SafeByteArray.h>
00015
00016 namespace Swift {
00017 class SWIFTEN_API Base64 {
00018 public:
00019 static std::string encode(const ByteArray& s);
00020 static SafeByteArray encode(const SafeByteArray& s);
00021
00022 static ByteArray decode(const std::string &s);
00023 };
00024 }