Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/fourcube/solution-base64
- Owner: fourcube
- License: mit
- Created: 2014-08-18T16:06:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T16:27:05.000Z (over 10 years ago)
- Last Synced: 2024-12-22T19:07:40.326Z (29 days 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.exsdefp 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