def pad_with_null(message, padding):
  """ Pads a message with null characters.
  Args:
    padding: Number to add on the front an back.
  Returns:
    Padded version of the message. """
  num_front, num_back = padding
  return "\0" * num_front + message + "\0" * num_back