SIMPLE CIPHER IN PYTHON!


SUBMITTED BY: Guest

DATE: Feb. 2, 2014, 9:15 a.m.

FORMAT: Text only

SIZE: 330 Bytes

HITS: 744

  1. #!/usr/bin/python
  2. # TO ENCRYPT: open the file, enter your text, press enter,Encrypted text appears
  3. # TO DECRYPT: open the file, enter your text, press enter,Decrypted text appears
  4. s = raw_input(">")
  5. z = ""
  6. cnt=1
  7. for c in s:
  8. z+=chr(ord(c)^cnt)
  9. cnt=cnt+1
  10. print z
  11. raw_input()

comments powered by Disqus