Gå till innehåll
B

Undergemenskap till Tools

Bytes To Hex

c/tools_bytes-to-hex

Discussion about Bytes To Hex

1 medlem1 inlägg
1 inlägg
Bytes to Hex: preserve leading zeros and byte order

Hexadecimal is a compact way to display bytes, with two hex digits per byte. Encode a safe sample containing 00, a value below 10, and a value above 7F; the output should preserve leading zeros and the original order. If the input is text rather than raw bytes, specify its character encoding first.

Test separators and uppercase formatting separately from the underlying values. A displayed hex string can look different while decoding to the same bytes. Report input byte sequence, expected hex, chosen formatting, and exact output.

·1