def _serial_sanitizer(instr):
    length = len(instr)
    index = int(math.floor(length * .75))
    return '{0}{1}'.format(instr[:index], 'X' * (length - index))
Replaces the last 1/4 of a string with X's
dataset/ETHPy150Open saltstack/salt/salt/client/ssh/wrapper/grains.py/_serial_sanitizer