Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You have to read the docs! You don't use enciphering and deciphering. The decryption is not the same as encoding, which you are doing twice. Use

c=shift_system.enciphering(key,plaintext)

and then for going back:

plaintextagain=shift_system.deciphering(key,c)