SEQ = 13; DATA = 0x3b04b26a0adada2f67326bb0c5d6L; SIG = 0x2e5ab24f9dc21df406a87de0b3b4L; SEQ = 0; DATA = 0x7492f4ec9001202dcb569df468b4L; SIG = 0xc9107666b1cc040a4fc2e89e3e7L; SEQ = 5; DATA = 0x94d97e04f52c2d6f42f9aacbf0b5L; SIG = 0x1e3b6d4eaf11582e85ead4bf90a9L;
cips=data.split('\n') res=['']*len(cips) for cip in cips[:-1]: data=b64decode(cip) seq=int(data[(data.find('= ')+2):data.find(';')]) cipher=data[(data.find('x')+1):data.find('L')] sig=data[(data.rfind('x')+1):data.rfind('L')] msg=rsa_key2.decrypt(long(cipher,16)) if msg==powmod(long(sig,16),e,N1): res[seq]+=chr(msg) return res
if __name__=='__main__': #python solve.py print''.join(solve())