Can I format an Erlang binary so that each byte is written in hex? I.e.,
> io:format(???, [<<255, 16>>]). <>
Improving upon @hairyhum
This takes care of zero paddings << <> ||<> <= Id, Y <- integer_to_list(X,16)>>
<< <> ||<> <= Id, Y <- integer_to_list(X,16)>>
reverse transformation <<<> || <> <= Id,Z <- [binary_to_integer(<>,16)]>>, %%hex to binary
<<<> || <> <= Id,Z <- [binary_to_integer(<>,16)]>>, %%hex to binary