summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/StringCodecs/Base64.h')
-rw-r--r--Swiften/StringCodecs/Base64.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Swiften/StringCodecs/Base64.h b/Swiften/StringCodecs/Base64.h
new file mode 100644
index 0000000..1ea378c
--- /dev/null
+++ b/Swiften/StringCodecs/Base64.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <vector>
+
+#include "Swiften/Base/String.h"
+#include "Swiften/Base/ByteArray.h"
+
+namespace Swift {
+ class Base64 {
+ public:
+ static String encode(const ByteArray& s);
+ static ByteArray decode(const String &s);
+ };
+}