Add base64 encode and decode.

This commit is contained in:
Chunting Gu
2019-03-27 14:06:22 +08:00
parent ee56fe9d1b
commit 18db152419
7 changed files with 249 additions and 23 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef WEBCC_BASE64_H_
#define WEBCC_BASE64_H_
#include <cctype>
#include <string>
namespace webcc {
std::string Base64Encode(const std::uint8_t* data, std::size_t len);
std::string Base64Encode(const std::string& input);
std::string Base64Decode(const std::string& data);
} // namespace webcc
#endif // WEBCC_BASE64_H_