Thread: anyone used base64.h in a c++ program?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    anyone used base64.h in a c++ program?

    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
    Last edited by Anddos; 03-22-2009 at 08:43 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM