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.
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