Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------------------------------
- # --- --- --- --- --- --- --- ORBITS TEXT ENCRYPTER --- --- --- --- --- --- ---
- #-------------------------------------------------------------------------------
- done = False
- while not done:
- choice = input("Would you like to encrypt or decrypt? enter e/d = ")
- if choice == "e":
- plain_text = input("Enter the text you'd like encrypted = ")
- print("\n")
- encrypted_text = ""
- for c in plain_text:
- x = ord(c)
- x = x + 1
- c2 = chr(x)
- encrypted_text = encrypted_text + c2
- print(encrypted_text)
- print("\n")
- elif choice == "d":
- encrypted_text = input("Enter the text you'd like to decrypt = ")
- plain_text = ""
- for c in encrypted_text:
- x = ord(c)
- x = x - 1
- c2 = chr(x)
- plain_text = plain_text + c2
- print(plain_text)
- print("\n")
- else:
- print("DONE!")
- areyoudone = input("Are you done using the encrypter? y/n = ")
- if areyoudone == "y":
- done = True
- print("Thanks for using Orbitt's Encryption Service have a nice day!")
- elif areyoudone == "n":
- done = False
- else:
- done = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement