This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ben oliver 11.01.2013 | |
| # a (functional) python 3.x vigenere encoder / decoder. | |
| # encode and decode functions are mathematical, no dictionary lookups. | |
| from itertools import cycle | |
| from functools import partial | |
| from string import ascii_uppercase | |
| def transform(crypt_function,k,s): | |
| """ (Int -> Int -> Int) -> Char -> Char -> Char """ |
NewerOlder