M
Materialised
Hi Everyone,
I am having a few issues while attempting to use Kevin Easton's base64
encryption algorythm. (See
http://groups.google.com/[email protected])
here is a sample program I am using to test the algorythm.
----- start main.c -----
#include <stdio.h>
#include "base64.h"
int main(void)
{
char string[5] = "hello";
int len;
char string2[10];
len = strlen(string);
printf("%s\n", string);
b64_encode(string2, string, len);
printf("%s\n", string2);
return 0;
}
----- end main.c -----
I compile the program using:
gcc base64.c main.c -o base
And when I run it I get the following output.
mick@codegurus $ ./base
hello?(????
aGVsbG/wBCjG7L+/AQ==??????(
Does anyone know where its going wrong?
I am having a few issues while attempting to use Kevin Easton's base64
encryption algorythm. (See
http://groups.google.com/[email protected])
here is a sample program I am using to test the algorythm.
----- start main.c -----
#include <stdio.h>
#include "base64.h"
int main(void)
{
char string[5] = "hello";
int len;
char string2[10];
len = strlen(string);
printf("%s\n", string);
b64_encode(string2, string, len);
printf("%s\n", string2);
return 0;
}
----- end main.c -----
I compile the program using:
gcc base64.c main.c -o base
And when I run it I get the following output.
mick@codegurus $ ./base
hello?(????
aGVsbG/wBCjG7L+/AQ==??????(
Does anyone know where its going wrong?