Hex Module Documentation

The hex module provides functions for encoding and decoding data using hexadecimal representation, as well as for generating a hex dump of the data.

Functions

  • encode(src): returns the hexadecimal encoding of src.
  • decode(s): returns the bytes represented by the hexadecimal string s.
  • dump(src): returns a string containing the hex dump of the input data.