Advertisement
KodingKid

Basic Python Message Encryption System

Apr 6th, 2021
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.44 KB | None | 0 0
  1. print("A = 1, B = 2, C = 3, D = 4, E = 5, F = 6, G = 7, H = 8, I = 9, J = 10, K = 11, L = 12, M = 13, N = 14, O = 15, P = 16, Q = 17, R = 18, S = 19, T = 20, U = 21, V = 22, W = 23, X = 24, Y = 25, Z = 26")
  2. print("Enter your message!")
  3. input()
  4. #make as many inputs as you want, you can only do one letter per input or the encryption won't work
  5. if input == "A" or "a":
  6.     print("1")
  7. if input == "B" or "b":
  8.     print("2")
  9. if input == "C" or "c":
  10.     print("3")
  11. if input == "D" or "d":
  12.     print("4")
  13. if input == "E" or "e":
  14.     print("5")
  15. if input == "F" or "f":
  16.     print("6")
  17. if input == "G" or "g":
  18.     print("7")
  19. if input == "H" or "h":
  20.     print("8")
  21. if input == "I" or "i":
  22.     print("9")
  23. if input == "J" or "j":
  24.     print("10")
  25. if input == "K" or "k":
  26.     print("11")
  27. if input == "L" or "l":
  28.     print("12")
  29. if input == "M" or "m":
  30.     print("13")
  31. if input == "N" or "n":
  32.     print("14")
  33. if input == "O" or "o":
  34.     print("15")
  35. if input == "P" or "p":
  36.     print("16")
  37. if input == "Q" or "q":
  38.     print("17")
  39. if input == "R" or "r":
  40.     print("18")
  41. if input == "S" or "s":
  42.     print("19")
  43. if input == "T" or "t":
  44.     print("20")
  45. if input == "U" or "u"
  46.     print("21")
  47. if input == "V" or "v"
  48.     print("22")
  49. if input == "W" or "w"
  50.     print("23")
  51. if input == "X" or "x"
  52.     print("24")        
  53. if input == "Y" or "y"
  54.     print("25")    
  55. if input == "Z" or "z"
  56.     print("26")
  57. #decryption script coming out soon!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement