Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
accumulate solution in Creative category for Vigenere Cipher by veky
def decode_vigenere(a, b, c, I=__import__):
m=lambda*u:''.join(I("string").ascii_uppercase[ord(s)-ord(t)]for s,t in zip(*u))
for p in I("itertools").accumulate(m(b, a)):
if (p * len(c)).startswith(m(b, a)): return m(c, p * len(c))
Sept. 19, 2014
Comments: