http://gitea.skynet.i2p/skynet/tmn/src/branch/master/lib/base64.cpp
If not, see <http://www.gnu.org/licenses/>. # if defined(_WIN32) # include "boinc_win.h" # else # include "config.h" # endif # include "boinc_stdio.h" # include "base64.h" using std : : string ; // Table of characters coding the 64 values. static char base64_value_to_char [ 64 ] = { ' A ' , ' B ' , ' C ' , ' D ' , ' E ' , ' F ' , ' G ' , ' H ' , ' I ' , ' J ' , // 0- 9 ' K ' , ' L ' , ' M ' , ' N ' , ' O ' , ' P ' , ' Q ' , ' R ' , ' S ' , ' T ' , // 10-19 ' U ' , ' V ' , ' W ' , ' X ' ,...