Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cList=[]
- s=input("Enter string to encrypt: ")
- for ch in s:
- cList.append(str(ord(ch)*5+2))
- print("Here are the ordinal values of encrypted string: ")
- for ch in cList:
- print(ch, end=" ")
- print()
- fd=open("EncryptedMessage.txt","w")
- output = ""
- for ch in cList:
- output += ch + " "
- print(output,file=fd)
- fd.close()
Advertisement
Add Comment
Please, Sign In to add comment