https://github.com/fourcube/solution-base64
Mix module providing base64 encoding and decoding for Elixir.
https://github.com/fourcube/solution-base64
Last synced: 6 months ago
JSON representation
Mix module providing base64 encoding and decoding for Elixir.
- Host: GitHub
- URL: https://github.com/fourcube/solution-base64
- Owner: fourcube
- License: mit
- Created: 2014-08-18T16:06:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T16:27:05.000Z (over 11 years ago)
- Last Synced: 2025-06-20T16:10:59.076Z (6 months ago)
- Language: Elixir
- Size: 168 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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