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)