Functions
hex_to_bytes(str)
Converts hexadecimal string of any length to bytes.
Parameters
- string str
Returns
- bytes
bytes_to_hex(data)
Converts binary data (byes) of any length to hexadecimal string representation.
Parameters
- bytes data
Returns
- string
decimal_to_hex(n)
Converts the given decimal based number to an hexadeccimal string.
Parameters
- number n
Returns
- string
hex_to_decimal(str)
Converts the given hexadecimal string to a decimal base 10 number.
Parameters
- string str
Returns
- number
Notes
- string must either contain the plain hexadecimal string or be in the format 0x[hex string].
unicode_to_hex(chr)
Converts a unicode character to it's equivalent hexadecimal string.
Parameters
- char chr
Returns
- string
bytes_to_decimal(bytes)
Converts a bytes (binary data) to a decimal number.
Parameters
- bytes bytes
Returns
- number