Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 566 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 566 Bytes

base64

Small C library for base64 encoding and decoding

There are 3 parts to this:

  • base64.c - runner that takes an input file and base64 encodes or decodes the contents, and then outputs result to stdout.
  • base64_lib.c - the base64 encoding/decoding library itself
  • base64_test.c - unit tests for encoding and decoding

To build the runner and libarary, run make

To build the unit test, run make test

To run ./base64 [-e|-d] inputfile

  • -e encodes the input file
  • -d decodes the input file Output is writting to sdtout with no newline at the end