Convert from Text to Hexadecimal

Convert from Text to Hexadecimal

The relationship between ASCII encoded text and the hex value of the characters is described in the ASCII table. It descripes the mapping between each character and a 7 bit value, with will be converted to hex.

Example: M => hexadecimal
M => 77 (with ASCII Table)
77 / 16^1 = 4 (first hex digit)
77 % 16^1 = 13
13 / 16^0 = 13 (=d, second hex digit)
13 % 16^0 = 0
=> 0x4d (= 77)