This repository holds the completed project accompanying the blogpost Implementing Base64 from scratch in Rust. It is by no means a perfect implementation of Base64 but rather meant as a learning project. Feedback and PRs are welcomed 🙂
This project is built and run using cargo.
Compiling and running the binary
# encoding
echo 'fluffy pancakes' | cargo run -- encode
> Zmx1ZmZ5IHBhbmNha2Vz
# and the reverse
echo 'Zmx1ZmZ5IHBhbmNha2Vz' | cargo run -- decode
> fluffy pancakes
Running tests
cargo test