cobra_tomtrein

Untitled

Jul 24th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. key2 = {}
  2.  
  3. change = function(section)
  4. returnstring = ""
  5. charable = {}
  6. for i=1, #section do
  7. table.insert(charable, string.sub(filestring, i,i))
  8. end
  9. for i=#charable, 1, -1 do
  10. returnstring = returnstring..charable[i]
  11. end
  12. return returnstring
  13. end
  14.  
  15. changemax = function(filestring2)
  16. currentstring = {}
  17. table.insert(currentstring, filestring2)
  18. for q=2, 1000 do
  19. thisstring = ""
  20. current = 1
  21. while true do
  22. w = current + q
  23. select = string.sub(currentstring[q-1], current, w-1)
  24. thisstring = thisstring..change(select)
  25. if w-1 >= #filestring2 then
  26. table.insert(currentstring, thisstring)
  27. break
  28. end
  29. current = current + q
  30. end
  31. end
  32. return currentstring[999]
  33. end
  34.  
  35. ppio = 0
  36. linesop = {}
  37. print("file:")
  38. cryptfile = read()
  39. file = fs.open(cryptfile, "r")
  40. while true do
  41. filestring = file.readLine()
  42. for i=1, 10 do
  43. curline = file.readLine()
  44. if curline == nil then
  45. break
  46. end
  47. filestring = filestring.."&"..curline
  48. end
  49. if curline == nil then
  50. break
  51. end
  52. table.insert(linesop, filestring)
  53. ppio = ppio+1
  54. end
  55. file.close()
  56.  
  57. shell.run("delete", "cryptfile")
  58. file = fs.open(cryptfile, "w")
  59. for ioi=1, ppio do
  60. file.writeLine(changemax(linesop[ioi]))
  61. end
  62. file.close()
Advertisement
Add Comment
Please, Sign In to add comment