def bin_compensate(bin_arr):
    """
    Compensate a binary number in string with zero till its length being a multiple of 8
    :param bin_arr: str
    :return: str
    """
    return '0' * (8 - len(bin_arr) % 8) + bin_arr