ThatSnail

Untitled

Mar 11th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. cList=[]
  2. s=input("Enter string to encrypt: ")
  3. for ch in s:
  4.     cList.append(str(ord(ch)*5+2))
  5. print("Here are the ordinal values of encrypted string: ")
  6. for ch in cList:
  7.     print(ch, end=" ")
  8. print()
  9.  
  10. fd=open("EncryptedMessage.txt","w")
  11. output = ""
  12. for ch in cList:
  13.     output += ch + " "
  14. print(output,file=fd)
  15. fd.close()
Advertisement
Add Comment
Please, Sign In to add comment