Author Topic: Making an unchangable variable?  (Read 2807 times)

I just thought of it, and I could find alot of uses for it. Question is, is it possible to do in TS?

No. What would you need it for?

Closest thing you can get is
function getBlah(){ return "blah";}

No. What would you need it for?

Closest thing you can get is
function getBlah(){ return "blah";}

Basically what im trying to do is secure authentication a little more, basically have a server give torque a key, and hold it.
Using an unchangable variable would help alot in this case, so idiots wont tamper with it (although their loss)
and when the server is ready to auth with torque, torque will send the key back to complete authentication.

Although it isnt really a need, it would be nice.

EDIT: after thinking it through a little, i came to the conclusion that they will probably just edit the script and forget themselves over.
« Last Edit: March 18, 2014, 08:49:27 PM by Wrapperup »

There is no way to make a script-level data structure that cannot be changed. I use the term 'data structure', but really I should say "any script-level code" - a getValue function can be overwritten, a file can be changed, and a global variable can be deleted or rewritten.

Or make a weird variable like

$HiThere["Ajfdisasd"] = "ajsfs";

That is the closest thing I can think for it..

$HiThere["Ajfdisasd"] = "sfsja";

No. What would you need it for?

Closest thing you can get is
function getBlah(){ return "blah";}
Zeblote can you stop "blah'ing" all the commands for console or variable?

Zeblote can you stop "blah'ing" all the commands for console or variable?
No, and what are you doing in coding help?

No, and what are you doing in coding help?
Just wanna look in and i saw you "blah'ing" the commands.

Are people not allowed to use other metasyntactic variables than foo, bar, baz, quux, etc.? What exactly is the problem here?
« Last Edit: March 20, 2014, 02:31:20 PM by Port »

For this to be possible you probably would have to make engine changes.

It's not possible. I can overwrite any functions, variables, objects, or prevention techniques you throw at me.

Just wanna look in and i saw you "blah'ing" the commands.
Please stop whining

On topic - Couldn't you just use some sort of encryption? I imagine you could do something with encryption, or an outside program.

On topic - Couldn't you just use some sort of encryption? I imagine you could do something with encryption, or an outside program.
If you can make a version of a program that's encrypted, that directly implies that within that program is a way to obtain the unencrypted version so it can be run. It's not possible to prevent a skilled user from figuring out how and replacing the encrypted version with the unencrypted version.

How do you think photoshop keeps getting released online for free even with all it's DRM and stuff in place?

Here, let me prove it.

Let's say you have a program that contains a method.
Code: [Select]
function doNastyThings()
{
    //muahaha
    delete C:/
}

And you have an encrypted copy of this program, using whatever algorithm you like.
in order for this program to run it has to decrypt itself and run. So you have a method, decryptprogram(%program, %key) that does exactly this.

So in your code you now have:
Code: [Select]
eval(decryptprogram("erovitervtmoertivermclwoeimrtx", "secretkey"));
In order to obtain the unencrypted version of the code, all i have to do is replace eval with echo in the code and it'll spit it out.

There are lots of different things you can do to obsfucate and complicate things further but really it just comes down to how determined a skilled user is to reveal the original code. Yeah, nobody here's smart enough to crack photoshop but this ain't exactly assembly code here.
« Last Edit: March 20, 2014, 01:03:40 AM by Ipquarx »

If you can make a version of a program that's encrypted, that directly implies that within that program is a way to obtain the unencrypted version so it can be run. It's not possible to prevent a skilled user from figuring out how and replacing the encrypted version with the unencrypted version.

How do you think photoshop keeps getting released online for free even with all it's DRM and stuff in place?
In Starzy's defense, there's nobody on the forum that'd be skilled enough to crack Photoshop.