Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fourcube/solution-base64

Mix module providing base64 encoding and decoding for Elixir.
https://github.com/fourcube/solution-base64

Last synced: 4 days ago
JSON representation

Mix module providing base64 encoding and decoding for Elixir.

Awesome Lists containing this project

README

        

solution-base64
===============

Mix module providing base64 encoding and decoding for Elixir. It provides the functions `encode_base64` and `decode_base64`. Both functions work on binaries, strings and char lists but always return a string.

Usage
-----

First include add it to your projects dependencies:

```
# mix.exs

defp deps do
[
{:solution_base64, github: "fourcube/solution-base64"}
]
end
```

Then import it inside your module:

```
defmodule MyModule do
import Solution.Base64

#...
def get_me_foo do
a = encode_base64 "foo"

decode_base64 a
end
end