def modhex_encode(data):
t_map = string.maketrans("<STR_LIT>", "<STR_LIT>")<EOL>return data.translate(t_map)<EOL>
Convert an ordinary hex string to modhex.

@param data: Hex input
@type data: string

@returns: Modhex
@rtype: string