How to hex encode and decode a byte array
HEX is a standard why to convert from binary data to character data. It is useful in web development when you need to encode binary data in HTML or XML. HEX conversion is also useful when storing binary data in a database character field.
Tags: hex, binary, conversion, encode, decode
HEX is a base 16 numbering system, so 1-9 are the same, and the letters A-F are used for 10-15. So in HEX 10 = 16, 100 = 256, AA = 170, FF = 255. HEX conversion encodes each byte as two HEX characters, so the encoded string will be twice the siz
Updated: Mar 27 2015, 16:12
Views: 1171, today: 0, week: 0, month: 6
Thumbs up: 0, thumbs down: 0, stars: 0.0