At the moment there is no way to choose between case mode when using allocation free `encode_to_slice`. Current behavior defaults to lowercase. My proposal is to: change `encode_to_slice` -> `encode_to_slice_lower add `encode_to_slice_upper` `let (high, low) = byte2hex(*byte, HEX_CHARS_LOWER);` `HEX_CHARS_LOWER` could be easily parametrized