Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key2 = {}
- change = function(section)
- returnstring = ""
- charable = {}
- for i=1, #section do
- table.insert(charable, string.sub(filestring, i,i))
- end
- for i=#charable, 1, -1 do
- returnstring = returnstring..charable[i]
- end
- return returnstring
- end
- changemax = function(filestring2)
- currentstring = {}
- table.insert(currentstring, filestring2)
- for q=2, 1000 do
- thisstring = ""
- current = 1
- while true do
- w = current + q
- select = string.sub(currentstring[q-1], current, w-1)
- thisstring = thisstring..change(select)
- if w-1 >= #filestring2 then
- table.insert(currentstring, thisstring)
- break
- end
- current = current + q
- end
- end
- return currentstring[999]
- end
- ppio = 0
- linesop = {}
- print("file:")
- cryptfile = read()
- file = fs.open(cryptfile, "r")
- while true do
- filestring = file.readLine()
- for i=1, 10 do
- curline = file.readLine()
- if curline == nil then
- break
- end
- filestring = filestring.."&"..curline
- end
- if curline == nil then
- break
- end
- table.insert(linesop, filestring)
- ppio = ppio+1
- end
- file.close()
- shell.run("delete", "cryptfile")
- file = fs.open(cryptfile, "w")
- for ioi=1, ppio do
- file.writeLine(changemax(linesop[ioi]))
- end
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment