def modhex_decode(data):
    t_map = string.maketrans("cbdefghijklnrtuv", "0123456789abcdef")
    return data.translate(t_map)
Convert a modhex string to ordinary hex.
dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/yubikey.py/modhex_decode