• Converts a string to its hex representation.

    Parameters

    • str: string

      The string to convert to hex

    Returns string

    The hex representation of the string