12 lines
494 B
C++
12 lines
494 B
C++
#ifndef _BASE64_H_
|
|
#define _BASE64_H_
|
|
#include <string>
|
|
/// @brief Кодирование в BASE64
|
|
/// @param bytes_to_encode буфер для декодирования
|
|
/// @param in_len длина буфера
|
|
std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len);
|
|
/// @brief Декодирование из BASE64
|
|
/// @param encoded_string Строкадля декодирования
|
|
std::string base64_decode(std::string const& encoded_string);
|
|
|
|
#endif |