This hint was *wrong*, it will introduce garbage into the string and the "rotor" code is clearly designed to work with byte strings, not unicode strings.> tmp = rt.encrypt('Cycle{}'.format(pickle.dumps(objSave))) Thanks to this hint Change it to "tmp=rt.encrypt( b'Cycle'+pickle.dumps(objSave) )" |