Can I format an Erlang binary so that each byte is written in hex? I.e.,
> io:format(???, [<<255, 16>>]). <>
bin_to_hex_list(Bin) when is_binary(Bin) -> lists:flatten([integer_to_list(X,16) || <> <= Bin]).