defbase_steg(base64: list) -> str:# base64 steg steg_string, steg_msg = '', '' for i in base64: i = i.replace('=', '') strings = ''.join([bin(base64_table.index(_)).replace('0b', '').rjust(6, '0') for _ in i]) steg_string += strings[(len(strings) - len(strings) // 8 * 8) * -1:] iflen(strings) % 8 != 0else'' for i inrange(len(steg_string) // 8): cha = chr(int(steg_string[i * 8: (i + 1) * 8], 2)) steg_msg += cha if cha in base64_table else'' return steg_msg