i am trying to convert username and password to base64 but for some reason i am getting a few compile errors, i think i have only the linux version of .base64.h and base64.cpp and not the windows one , can anyone help , TY
Code:string username = "myusername"; string passwd = "mypassword"; char src[100]; char GetBuffer[100]; sprintf(GetBuffer,"%s%c%c",username,':',passwd); char *Encoded = encode_base64(sizeof(GetBuffer),(unsigned char *)GetBuffer); //this function is in base64.cpp , the problem is its not compiling properly