sshmitm.utils module

sshmitm.utils.format_hex(data, hexwidth=19)

Format the data in hexadecimal format.

Parameters:
  • data (bytes) – Data to be formatted

  • hexwidth (int, default: 19) – Width of hexadecimal data (default 19)

Return type:

str

Returns:

Formatted hexadecimal data