Helper functions used by other modules in this library.
Converts matching binary into a hex string
Converts matching binary into a hex string.