encodes and decodes base64 as bytes or utf8
base64 0.22.1 is the de-facto RFC 4648 codec for Rust: #![forbid(unsafe_code)], no runtime deps, table-driven parser with checked-arithmetic length computations and cross-validated tests plus four cargo-fuzz harnesses. No findings; safe to deploy.
base64
#![forbid(unsafe_code)]