Created
February 12, 2017 19:39
-
-
Save ourway/9b57a26bb499d5822d685c2700b3907c to your computer and use it in GitHub Desktop.
Md5 in Elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Crypto do | |
| def md5(data) do | |
| Base.encode16(:erlang.md5(data), case: :lower) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment