1 // LAF Base Library 2 // Copyright (c) 2015-2016 David Capello 3 // 4 // This file is released under the terms of the MIT license. 5 // Read LICENSE.txt for more information. 6 7 #ifndef BASE_BASE64_H_INCLUDED 8 #define BASE_BASE64_H_INCLUDED 9 #pragma once 10 11 #include "base/buffer.h" 12 13 #include <string> 14 15 namespace base { 16 17 void encode_base64(const buffer& input, std::string& output); 18 void decode_base64(const std::string& input, buffer& output); 19 20 } // namespace base 21 22 #endif 23