Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2012-12-15 17:17:56 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:58 +0300
commit5be7d460aea063707a940e04ff7b15c4ebbdcf3a (patch)
tree6866572eb2b546f13fdff3a741fbfc9f1b28300a /coding/base64.hpp
parent98372ba583ca4a01bab65f8a0c63c55a9085cba9 (diff)
Added correct base64 encode/decode implementation to use in API
Diffstat (limited to 'coding/base64.hpp')
-rw-r--r--coding/base64.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/coding/base64.hpp b/coding/base64.hpp
index e9a4081a8e..5ae58c69ed 100644
--- a/coding/base64.hpp
+++ b/coding/base64.hpp
@@ -1,7 +1,16 @@
#pragma once
+#include "../std/vector.hpp"
#include "../std/string.hpp"
+namespace base64
+{
+
+string Encode(string const & bytesToEncode);
+string Decode(string const & base64CharsToDecode);
+
+}
+
/// This namespace contains historically invalid implementation of base64,
/// but it's still needed for production code
namespace base64_for_user_ids