Linked to original stackoverflow answer for byte-to-hex test results.