Batch #1029 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_04414 EncodeBase64: logic confirmed by peer review Reviewed-by: ragnarok-clanker
11 lines
440 B
C++
11 lines
440 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_TEXT_BASE64_H
|
|
#define RAGNAROK_SOURCE_UTILITY_TEXT_BASE64_H
|
|
|
|
#include <string>
|
|
|
|
std::string InsertLinebreaks(std::string text, unsigned int distance);
|
|
std::string DecodeBase64(std::string encoded, bool removeLinebreaks = false);
|
|
std::string EncodeBase64(const std::string& input, bool urlSafe = false);
|
|
std::string EncodeBase64(const unsigned char* input, unsigned int length, bool urlSafe = false);
|
|
|
|
#endif
|