This file contains 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
#include <string> | |
#include <vector> | |
/* | |
Base64 translates 24 bits into 4 ASCII characters at a time. First, | |
3 8-bit bytes are treated as 4 6-bit groups. Those 4 groups are | |
translated into ASCII characters. That is, each 6-bit number is treated | |
as an index into the ASCII character array. | |
If the final set of bits is less 8 or 16 instead of 24, traditional base64 |