projects
/
sandbox
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move previous cryptopals work into an Erlang subfolder, start cryptopals in Python 3
[sandbox]
/
cryptopals
/
01.01
/
hex.erl
diff --git
a/cryptopals/01.01/hex.erl
b/cryptopals/01.01/hex.erl
deleted file mode 100644
(file)
index
d778f15
..0000000
--- a/
cryptopals/01.01/hex.erl
+++ /dev/null
@@
-1,7
+0,0 @@
--module(hex).
--export([decode/1]).
-
-data_in_pairs([]) -> [];
-data_in_pairs([C1,C2|Tail]) -> [ [C1] ++ [C2] | data_in_pairs(Tail) ].
-
-decode(Data) -> << <<(list_to_integer(C,16)):8>> || C <- data_in_pairs(Data) >>.