Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys, random, time
- while True:
- import sys, random, time, socket
- print 'enter words to cypher:'
- cypher = raw_input('>>>')
- alfa="abcdefghijklmnopqrstuvwxyz"
- ralfa=list(alfa);
- ralfa.reverse()
- m=dict([(alfa[i],ralfa[i]) for i in range(0, len(alfa))])
- for i in "~!@#$%^&*()_+=-0987654321`{}[]\\|'\";:,.<>/?":
- m[i]=i
- m[" "]=" "
- input=cypher; out="".join([m[i] for i in input])
- print out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement