Vigenere / Gronsfeld

Key

Vigenere

from pycipher import Vigenere
 
print Vigenere('CULTURE').encipher('helloworld')
print Vigenere('CULTURE').decipher('jyweinstfo')
    

Gronsfeld

from pycipher import Gronsfeld

print Gronsfeld([2,20,11,19,20,17,4]).encipher('helloworld')
print Gronsfeld([2,20,11,19,20,17,4]).decipher('jyweinstfo')