Talk:Running key cipher

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Cipher text example[edit]

I reverted a bad edit with the incorrect cipher text. Here's some basic python code showing the calculation

>>> f=lambda (x,y):chr((ord(x)-ord('a')+ord(y)-ord('A')) % 26 + ord('A'))
>>> f(('f', 'E'))
>>> map(f,zip(list('fleeatonce'),list('ERRORSCANO')))
['J', 'C', 'V', 'S', 'R', 'L', 'Q', 'N', 'P', 'S']

Note I only had to revert the bad first four characters of the cipher-string; the rest was ok originally. Jimbobl (talk) 14:44, 7 September 2011 (UTC)