#!/usr/bin/python # TO ENCRYPT: open the file, enter your text, press enter,Encrypted text appears # TO DECRYPT: open the file, enter your text, press enter,Decrypted text appears s = raw_input(">") z = "" cnt=1 for c in s: z+=chr(ord(c)^cnt) cnt=cnt+1 print z raw_input()