| 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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.