talira

Base64 encoding and decoding for Rust

open sourceMIT OR Apache-2.0free

base64 is the Rust crate for encoding and decoding base64, as bytes or UTF-8. It aims to be correct and fast, and offers several levels of abstraction: decode into an existing buffer for speed (about 2.6 GiB/s for a 3 KiB input) or into a new Vec for convenience. It is dual licensed under MIT or Apache 2.0.

Problems it solves

  • encode bytes as base64 in Rust
  • decode a base64 string in my Rust program quickly
  • base64 encode data without allocating in Rust

Features

  • encode and decode base64 as bytes or UTF-8
  • decode into an existing buffer or a new Vec

Alternatives

The same job

These do what base64 does.

  1. hex Hexadecimal encoding and decoding for Rust

Compare base64 with the top 3