Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/usr/bin/python
  2. import sys, random, time
  3. while True:
  4. import sys, random, time, socket
  5. print 'enter words to cypher:'
  6. cypher = raw_input('>>>')
  7. alfa="abcdefghijklmnopqrstuvwxyz"
  8. ralfa=list(alfa);
  9. ralfa.reverse()
  10. m=dict([(alfa[i],ralfa[i]) for i in range(0, len(alfa))])
  11. for i in "~!@#$%^&*()_+=-0987654321`{}[]\\|'\";:,.<>/?":
  12. m[i]=i
  13. m[" "]=" "
  14. input=cypher; out="".join([m[i] for i in input])
  15. print out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement