Module alphabet_translator

Source

Functionsยง

char_to_hex
Takes in a char and returns xHH where HH is the hex code. It will add a 0 to the front if the code would normally only be one character
char_to_hex_a_string
Alphabet encodes a string using char_to_hex
char_to_hex_if_required
will convert a char to alphabet encoded only if required to by the specification
char_to_hex_str_if_required
will convert only the characters that need to be converted within a string
hex_to_char
Takes in a hex code an return the associated char