from pycipher import Autokey print Autokey('CULTURE').encipher('helloworld') print Autokey('CULTURE').decipher('jyweinsypo')