Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/MD5/Erlang/md5-1.erl
Normal file
7
Task/MD5/Erlang/md5-1.erl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-module(tests).
|
||||
-export([md5/1]).
|
||||
|
||||
md5(S) ->
|
||||
string:to_upper(
|
||||
lists:flatten([io_lib:format("~2.16.0b",[N]) || <<N>> <= erlang:md5(S)])
|
||||
).
|
||||
4
Task/MD5/Erlang/md5-2.erl
Normal file
4
Task/MD5/Erlang/md5-2.erl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
1> c(tests).
|
||||
{ok,tests}
|
||||
2> tests:md5("The quick brown fox jumped over the lazy dog's back").
|
||||
"E38CA1D920C4B8B8D3946B2C72F01680"
|
||||
Loading…
Add table
Add a link
Reference in a new issue