def _multihex (blob):
  """Prepare a hex dump of binary data, given in any common form
  including [[str]], [[list]], [[bytes]], or [[bytearray]]."""
  return ' '.join(['%02X' % b for b in bytearray(blob)])