def str2hex(number):
    """
    Convert an hex based string number to int

    :param string number: string hex number to convert

    :return int: Integer value of the hex number
    """
    return int(number, 16)