Converting data to hexadecimal outputs quickly (opens in new tab)
Given any string of bytes, you can convert it to an hexadecimal string by mapping the least significant and the most significant 4 bits of byte to characters in 01...9A...F. There are more efficient techniques like base64, that map 3 bytes to 4 characters. However, hexadecimal outputs are easier to understand and often sufficiently concise. … Continue reading Converting data to hexadecimal outputs quickly
Read the original article