Guest User

kajvanschalk cipher FIXED

a guest
Apr 20th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'This is an edited version of code from u/kajvanschalk
  2. 'Edits made to fix broken/undesired bits and to make things more readable
  3. 'Edits done by u/Maxxer500, aka C0deR0gue
  4.  
  5. Set shell = CreateObject("wscript.shell")
  6.  
  7. encrypt=inputbox("type text om te versleutelen")
  8. encrypt=lcase(encrypt)
  9. encrypt=StrReverse(encrypt)
  10.  
  11. shell.Run "%windir%\notepad"
  12. wscript.sleep 500
  13.  
  14. Function encode(input)
  15.     newtxt=input
  16.    
  17.     'Don't change anything in this block (unless you're changing the !, @, and # to an unused character), otherwise this half of the alphabet will be incorrectly translated
  18.     newtxt=Replace(newtxt , "a" , "1")
  19.     newtxt=Replace(newtxt , "b" , "2")
  20.     newtxt=Replace(newtxt , "c" , "3")
  21.     newtxt=Replace(newtxt , "d" , "4")
  22.     newtxt=Replace(newtxt , "e" , "5")
  23.     newtxt=Replace(newtxt , "f" , "6")
  24.     newtxt=Replace(newtxt , "g" , "7")
  25.     newtxt=Replace(newtxt , "h" , "8")
  26.     newtxt=Replace(newtxt , "i" , "9")
  27.     newtxt=Replace(newtxt , "j" , "0")
  28.     newtxt=Replace(newtxt , "k" , "!")
  29.     newtxt=Replace(newtxt , "l" , "@")
  30.     newtxt=Replace(newtxt , "m" , "#")
  31.    
  32.     'In this block you can change each 3rd argument to any character you want, so long as it isn't any number, !, @, or # (or whatever unused characters you use on lines 28-30)
  33.     newtxt=Replace(newtxt , "n" , "m")
  34.     newtxt=Replace(newtxt , "o" , "l")
  35.     newtxt=Replace(newtxt , "p" , "k")
  36.     newtxt=Replace(newtxt , "q" , "j")
  37.     newtxt=Replace(newtxt , "r" , "i")
  38.     newtxt=Replace(newtxt , "s" , "h")
  39.     newtxt=Replace(newtxt , "t" , "g")
  40.     newtxt=Replace(newtxt , "u" , "f")
  41.     newtxt=Replace(newtxt , "v" , "e")
  42.     newtxt=Replace(newtxt , "w" , "d")
  43.     newtxt=Replace(newtxt , "x" , "c")
  44.     newtxt=Replace(newtxt , "y" , "b")
  45.     newtxt=Replace(newtxt , "z" , "a")
  46.    
  47.     'In this block you can change each 3rd argument to any character you want (if you changed the unused characters on lines 28-30, make sure to mirror that on lines 58-60)
  48.     newtxt=Replace(newtxt , "1" , "z")
  49.     newtxt=Replace(newtxt , "2" , "y")
  50.     newtxt=Replace(newtxt , "3" , "x")
  51.     newtxt=Replace(newtxt , "4" , "w")
  52.     newtxt=Replace(newtxt , "5" , "v")
  53.     newtxt=Replace(newtxt , "6" , "u")
  54.     newtxt=Replace(newtxt , "7" , "t")
  55.     newtxt=Replace(newtxt , "8" , "s")
  56.     newtxt=Replace(newtxt , "9" , "r")
  57.     newtxt=Replace(newtxt , "0" , "q")
  58.     newtxt=Replace(newtxt , "!" , "p")
  59.     newtxt=Replace(newtxt , "@" , "o")
  60.     newtxt=Replace(newtxt , "#" , "n")
  61.    
  62.     encode=newtxt
  63. End function
  64.  
  65. shell.Sendkeys Encode(encrypt)
Advertisement
Add Comment
Please, Sign In to add comment