Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kisom/libbase64
Extracted OpenBSD base64 libraries, updated to C99.
https://github.com/kisom/libbase64
Last synced: 18 days ago
JSON representation
Extracted OpenBSD base64 libraries, updated to C99.
- Host: GitHub
- URL: https://github.com/kisom/libbase64
- Owner: kisom
- License: other
- Created: 2013-02-07T07:03:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T06:10:14.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T02:46:51.960Z (about 1 month ago)
- Language: C
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
libbase64
This is the OpenBSD base64 functions extracted to an external static
library. It provides an easy way to include base64 encoding and decoding
in your code. It has been updated to the C99 standard.AUTHOR
Kyle IsomLICENSE
See the LICENSE file for details.UNIT TESTS
The following unit tests ship with the library:* A version check to ensure the library being tested matches what is
expected, and that the version function works as expected.
* An encoding length test that validates the base64_enclen function.
* A decoding length test that validates the base64_declen function.
* An encoding test that tests increases length of a string with the
expected output string. This function builds increasingly longer
strings of A's (i.e. 'A', 'AA', etc...) and validates against an
array of expected base64 strings.
* A decoding test that ensures the that the previous test vectors
decode to the expected sequence.The unit tests may be run with `make check`.