simpler bin to hex conversion for encryption key, using unpack