thenuke321

Tea

Feb 26th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. Key = 5453487089
  2. function decCode ()
  3.     local outPut = fileOpen("outPut.txt")
  4.     local inPut = fileOpen("inPut.txt")
  5.    
  6.     local size1 = fileGetSize(outPut)
  7.     local size2 = fileGetSize(inPut)
  8.    
  9.     local data = fileRead(inPut,size2)
  10.     local Code = teaDecode(tostring(data),tostring(Key))
  11.     fileWrite(outPut,tostring(Code))
  12.     fileClose(outPut)
  13.     fileClose(inPut)
  14. end
  15. addCommandHandler("deCode",decCode)
  16.  
  17. function enCode ()
  18.     local outPut = fileOpen("outPut.txt")
  19.     local inPut = fileOpen("inPut.txt")
  20.    
  21.     local size1 = fileGetSize(outPut)
  22.     local size2 = fileGetSize(inPut)
  23.    
  24.     local data = fileRead(inPut,size2)
  25.     local Code = teaEncode(tostring(data),tostring(Key))
  26.     fileWrite(outPut,tostring(Code))
  27.     fileClose(outPut)
  28.     fileClose(inPut)
  29. end
  30. addCommandHandler("enCode",enCode)
Advertisement
Add Comment
Please, Sign In to add comment