Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
SIMPLE CIPHER IN PYTHON!
SUBMITTED BY:
Guest
DATE:
Feb. 2, 2014, 9:15 a.m.
FORMAT:
Text only
SIZE:
330 Bytes
Raw
Download
Tweet
HITS:
744
Go to comments
Report
#!/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()
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus