base64

A micro-library providing Base64 encoding/decoding using Rust NIFs

MIT License

Downloads
477
Stars
5
Committers
2

Base64

Documentation

A micro-library to encode and decode binaries using the base 64 encoding scheme. This library uses rustler to implement Rust NIFs which wrap the base64 crate.

Minimal benchmarking showed these are 2-40x faster than the built in Elixir/Erlang versions depending on the amount of data encoded or decoded. The larger the data, the bigger the difference.

Installation

You'll need to install Rust, the instructions can be found here.

The package can be installed by adding base64 to your list of dependencies in mix.exs:

def deps do
  [
    {:base64, "~> 0.1.0"}
  ]
end