Base64 icon indicating copy to clipboard operation
Base64 copied to clipboard

C library to encode and decode strings with base64 format

Results 3 Base64 issues
Sort by recently updated
recently updated
newest added

char* base64_decode(char* cipher) { //char* plain = malloc(strlen(cipher) * 3 / 4); char* plain = malloc(strlen(cipher) * 3 / 4 + 1); ... plain[p] = '\0';

The input to the encoder should be a pointer and a length, not a NULL-terminated string. Input binary data could NUL characters in it. The same problem occurs with decoding.