b64.c icon indicating copy to clipboard operation
b64.c copied to clipboard

Base64 encode/decode

Results 11 b64.c issues
Sort by recently updated
recently updated
newest added

This PR adjusts the issue discussed in issue #28

`buffer.c` solved a problem that I was having with reallocs when doing a stress test, I'm not sure what the problem was, but it doesn't happen anymore 👍. So, I...

``` stephenmathieson at UTA in ~/repos/github.com/littlstar/b64.c on master $ valgrind ./test ==1936== Memcheck, a memory error detector ==1936== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==1936==...

bug

Line 44 of decode.c if (!(isalnum(src[j]) || '+' == src[j] || '/' == src[j])) { break; } Should be if (!(isalnum(**(int)**src[j]) || '+' == src[j] || '/' == src[j])) {...

bug

b64_decode is not handling white spaces. I have explicitly added code in my source code to ignore white spaces. Please add it.

bug

How about making this library able to use static buffers? I am playing with them now on [this branch](https://github.com/d21d3q/b64.c/tree/static-buffers). For now I've added `b64_encode_static` because it has different parameters set,...

enhancement
help wanted

currently ```sh ../b64/buffer.c:25:18: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 25 | if (size > buf->bufc * B64_BUFFER_SIZE) | ^ ../b64/buffer.c:27:29:...

Hi, I found your code really good. It seems that the current implementation follows the RFC 4648 standard. Could you please confirm that it is the case ? If so,...

help wanted
documentation