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

base64.hpp « coding - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ae58c69ed1ed39fe1d533de4463473c6aa4bd30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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
{

string encode(string rawBytes);
string decode(string const & base64Chars);

}