Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program = True
- while program == True:
- menuinput = input("""Would you like to encrypt or decrypt?""")
- menuinput2 = menuinput.lower()
- if menuinput2 == "encrypt":
- clear_text = input("CLEARTEXT: ")
- clear_text = clear_text.lower()
- cipher_text = clear_text.replace("a","{å/Ω+")
- cipher_text = cipher_text.replace("b","¥1")
- cipher_text = cipher_text.replace("c","≈2")
- cipher_text = cipher_text.replace("d","∑+")
- cipher_text = cipher_text.replace("e","{√1")
- cipher_text = cipher_text.replace("f","¨2")
- cipher_text = cipher_text.replace("g","ß+")
- cipher_text = cipher_text.replace("h","®1")
- cipher_text = cipher_text.replace("i","{œ2")
- cipher_text = cipher_text.replace("j","π+")
- cipher_text = cipher_text.replace("k","ø1")
- cipher_text = cipher_text.replace("m","µ+")
- cipher_text = cipher_text.replace("l","˜2")
- cipher_text = cipher_text.replace("n","¬1")
- cipher_text = cipher_text.replace("o","{˚2")
- cipher_text = cipher_text.replace("p","∆+")
- cipher_text = cipher_text.replace("q","ˆ1")
- cipher_text = cipher_text.replace("r","˙2")
- cipher_text = cipher_text.replace("s","©+")
- cipher_text = cipher_text.replace("t","ƒ1")
- cipher_text = cipher_text.replace("u","{´2")
- cipher_text = cipher_text.replace("v","∂+")
- cipher_text = cipher_text.replace("w","ç1")
- cipher_text = cipher_text.replace("x","∫2")
- cipher_text = cipher_text.replace("y","å+")
- cipher_text = cipher_text.replace("z","Ω\å1")
- lowercipher = clear_text.lower()
- print("""Encrypted Text: """+ cipher_text)
- print()
- print("""Original text: """+ clear_text)
- elif menuinput2 == "decrypt":
- clear_text = input("ENCRYPTED STRING: ")
- cipher_text = clear_text.replace("{å/Ω+","a")
- cipher_text = cipher_text.replace("¥1","b")
- cipher_text = cipher_text.replace("≈2","c")
- cipher_text = cipher_text.replace("∑+","d")
- cipher_text = cipher_text.replace("{√1","e")
- cipher_text = cipher_text.replace("¨2","f")
- cipher_text = cipher_text.replace("ß+","g")
- cipher_text = cipher_text.replace("®1","h")
- cipher_text = cipher_text.replace("{œ2","i")
- cipher_text = cipher_text.replace("π+","j")
- cipher_text = cipher_text.replace("ø1","k")
- cipher_text = cipher_text.replace("˜2","l")
- cipher_text = cipher_text.replace("µ+","m")
- cipher_text = cipher_text.replace("¬1","n")
- cipher_text = cipher_text.replace("{˚2","o")
- cipher_text = cipher_text.replace("∆+","p")
- cipher_text = cipher_text.replace("ˆ1","q")
- cipher_text = cipher_text.replace("˙2","r")
- cipher_text = cipher_text.replace("©+","s")
- cipher_text = cipher_text.replace("ƒ1","t")
- cipher_text = cipher_text.replace("{´2","u")
- cipher_text = cipher_text.replace("∂+","v")
- cipher_text = cipher_text.replace("ç1","w")
- cipher_text = cipher_text.replace("∫2","x")
- cipher_text = cipher_text.replace("å+","y")
- cipher_text = cipher_text.replace("Ω\å1","z")
- print("ORIGINAL TEXT: " + clear_text)
- print("UNENCRYPTED STRING: " + cipher_text)
Add Comment
Please, Sign In to add comment