There are two python programs in this gist
The first one is binary_letters.py
It has two functions: binary_to_text
and text_to_binary
The seconf one is hex_letters.py
It has two functions: string_to_hex
and hex_to_string
You can use both these functions for what they are made for by importing them into your own file or by calling them