This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FROM | |
//https://stackoverflow.com/a/34571089/5155484 | |
typedef unsigned char uchar; | |
static const std::string b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";//= | |
static std::string base64_encode(const std::string &in) { | |
std::string out; | |
int val=0, valb=-6; | |
for (uchar c : in) { |