from pycipher import Railfence print Railfence(4).encipher('HELLOWORLD') print Railfence(4).decipher('HOEWRLOLLD')