A simple CLI utility for Base64 encoding and decoding.
The program reads from stdin and outputs the result to stdout.
Encode:
echo -n "hello" | ./main -eDecode:
echo -n "aGVsbG8=" | ./main -d- zig build-exe main.zig - Compile the project.
- zig test encoder.zig - Run the test suite.
- -e: Encode input text to Base64.
- -d: Decode Base64 text to raw bytes.