Hi all, i have a few beginner questions
- am i right to say that
:crypto
is a library from erlang and not elixir? -
:crypto.hash(:md5, input)
this works but in the documentation show below:md5
is not one of thetype
mentioned. So what happening? Is the doc wrong?
iex(3)> h :crypto.hash/2
* :crypto.hash/2
@spec hash(type, data) :: digest
when type:
sha1()
| sha2()
| sha3()
| :ripemd160
| compatibility_only_hash(),
data: iodata(),
digest: binary()