二进制幂数解码
a="8842101220480224404014224202480122"
#分隔
a=a.split("0")
print(a)
flag=''
#遍历
for i in a:
list=[]
sum=0
for j in range(len(i)):
sum +=int(i[j])
flag +=chr(65 + sum -1)
print("flag{"+flag+"}")
二进制转十进制
ciphertxt ="01000100010100110111100100110011010010100111100101001011011101100101000001000011010100000110110101001000001101000101011101000011011110100010101101010100011010000101011101101001001100100100011001100111010010110110111100111001011001010101001101010000010101010011010001100101001101010110011100101011011010100101101001010101001100110100011001110010010101110100111001110110010011000100110100110101001101010110101101000101011001100011000101101000010001010110110101001110011100100111010100101011010011100100010100110011"
m = " ".join([str(int(ciphertxt[i:i+8],2)) for i in range(0,len(ciphertxt),8)])
print(m)