
-----------------------------------
TokenHerbz
Fri Mar 03, 2006 11:14 am

Protecting coded windows...
-----------------------------------
Hey, say in turing you have a game which has serveral seperate windows joined by include from the main window...

ex. 1:

Main window have the following

include "test.dll"

put num


The dll file:

var num: int := 77

what i did was save as test.dll, and it works

when i run the main, it outputs 77

But, it will not work if the .dll file needs variables, ex:

if the test.dll was this

var num: int
get num


is there a way to *protect* the turing file which needs to use variables?

-----------------------------------
Tony
Fri Mar 03, 2006 12:55 pm


-----------------------------------
include is equivalent to copy/pasting the code in place of the include line.

You'd have to elaborate on what you mean by protect

-----------------------------------
TokenHerbz
Fri Mar 03, 2006 8:36 pm


-----------------------------------
protect as in:  keeping others from seeing the code permanently.

-----------------------------------
MysticVegeta
Fri Mar 03, 2006 8:53 pm


-----------------------------------
Yes.
-> Create a program to encode the code.
-> Encode the code
-> Save it as "encoded.txt"
-> Open it with turing and read line by line, decode line by line in turing and save the file as "decoded.txt"
-> import "decoded.txt"
-> Do other stuff, make sure you save decoded.txt in C:/Somewhere/Somewhere, and delete it upon exit.

-----------------------------------
Tony
Fri Mar 03, 2006 9:11 pm


-----------------------------------
so you're looking to have your source-code unreadable but compiliable? :?

The problem is that Turing is not an interpriter, you can't include additional code run-time.

Now this could be overcome by building your own internal interpriter and some encoding/decoding work.

I'm curious as to what you're trying to hide and from whom? The simplest way to prevent others from reading your Turing source-code is to compile the program :lol:

-----------------------------------
MysticVegeta
Fri Mar 03, 2006 9:37 pm


-----------------------------------
LOL Amen to that. By far, compiling is the best way to hide the code, but if you want to "include" files to "organize" your code, my method by far is I think the closest you can do...

-----------------------------------
md
Fri Mar 03, 2006 10:13 pm


-----------------------------------
Umm... why do you need to encrypt your code? I'm gonna just jump out on a limb here and guess that your school provides some kind of storage that only you can access. If so then all you'd be doing by encrypting your code is making it more difficult for yourself.

-----------------------------------
TokenHerbz
Sat Mar 04, 2006 10:45 am


-----------------------------------
actually im not in school...

And i just want to know for future references, atm i dont have anything i care about hiding....   i just want to know

-----------------------------------
TokenHerbz
Sat Mar 04, 2006 10:47 am


-----------------------------------
Tony::  So if i compile it, it'll be .exe...

So...   ill have include "name.exe" ?

-----------------------------------
[Gandalf]
Sat Mar 04, 2006 10:52 am


-----------------------------------
No...  He means that you compile the complete program, and you don't have to worry about others reading your code.  Nothing with include.

-----------------------------------
Cervantes
Sat Mar 04, 2006 11:50 am


-----------------------------------
When you compile a turing program that includes another turing file, that other turing file need not be sent to others with the executable.  If you do package the turing file with it, changes to it will not affect the compiled code.  It's code is copied & pasted into the main program at compile time, and there's no way to access it.

-----------------------------------
MysticVegeta
Sat Mar 04, 2006 12:06 pm


-----------------------------------
 It's code is copied & pasted into the main program at compile time, and there's no way to access it.

I wouldnt say that because there are things like W32DASM decompilers :P

-----------------------------------
[Gandalf]
Sat Mar 04, 2006 12:18 pm


-----------------------------------
By the time they go through the Assembly -> Turing conversion, the code will look nothing at all like the original code.  That's if they can convert it back to Turing.  Anyone with that knowledge would also likely be spending their time on something more worthwhile.  Besides, why would you care enough to waste your time doing something like that? :P

-----------------------------------
MysticVegeta
Sat Mar 04, 2006 12:20 pm


-----------------------------------
yup, thats what I thought, why would anyone spend time debugging a uselesss program, when with the same knowledge they can do "anything"  :twisted:

-----------------------------------
Cervantes
Sat Mar 04, 2006 12:24 pm


-----------------------------------
For the purposes of a program that no one is actually going to try to break (from my understanding), close enough.

-----------------------------------
Dan
Mon Mar 06, 2006 3:20 am


-----------------------------------
"]Besides, why would you care enough to waste your time doing something like that? :P

Becuase a user was claiming that the exe compled turing progam was there own when it was acuatly some one eltes who they complied or stole the exe from and i decomined it to asm to find.......

Wait was that a retorical question?
