[Sharif University CTF Quals 2013] one Line encoder For Specialist pRogrammer (crypto200)
[python]>>> len(key) 9 >>> set(key) set([‘1’, ‘0’]) >>> >>> >>> suctf_enc = lambda text, key: reduce(lambda x, y: (x[0] + str(int(y) ^ int(x[1][0])), x[1][1:] + str(int(x[1][4]) ^ int(x[1][0]))), ”.join(map(lambda x: bin(ord(x))[2:].rjust(8, ‘0’), text)), (”,...
Recent comments