Skip to content

Instantly share code, notes, and snippets.

@sjava
Forked from ourway/crypto.ex
Created July 31, 2018 12:05
Show Gist options
  • Select an option

  • Save sjava/8af79af99823bd483583fd7ef6eb8b67 to your computer and use it in GitHub Desktop.

Select an option

Save sjava/8af79af99823bd483583fd7ef6eb8b67 to your computer and use it in GitHub Desktop.
Md5 in Elixir
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