Permalink
Browse files

Added the new Reverse cipher program.

  • Loading branch information...
asweigart committed Sep 2, 2012
1 parent 24fc561 commit e7814aac2f9737fcca869a4c909697ca8693142f
Showing with 14 additions and 0 deletions.
  1. +14 −0 reverse.py
View
@@ -0,0 +1,14 @@
+# Reverse Cipher
+# http://inventwithpython.com/codebreaker (BSD Licensed)
+
+print('Enter the message to encrypted:')
+message = input('> ')
+
+encrypted = ''
+
+i = len(message) - 1
+while i >= 0:
+ encrypted = encrypted + message[i]
+ i = i - 1
+
+print(encrypted)

0 comments on commit e7814aa

Please sign in to comment.