Current section

Files

Jump to
coincheck_ex lib crypto.ex
Raw

lib/crypto.ex

defmodule Crypto do
def hexdigest(key, data) do
:sha256
|> :crypto.hmac(key, data)
|> Base.encode16(case: :lower)
end
end