Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A Way to save Vars (https://forums.graalonline.com/forums/showthread.php?t=78747)

projectigi 02-17-2008 10:49 PM

A Way to save Vars
 
Hi,

so i had the idea of doing untouchable vars

double saved(in 2 subvars)
in a format like
this.34klj66$&!$j5lkj325j^!"5623#152#5jlkjkrqewklj rw.varname
and second
this.fjklsdfjlk24jkl152lk4j6jl1tö3jlk1l34jk16jkl4 35lkj324jlk152.varname
so noone can access it easily, since they wont be able to find out the varname with the getdynamicvarnames and getvarnames functions disabled

now, my problem is, i wanna keep these vars after logout of the player, but i dont wanna save em to a file, npc or client./clientr. strings because then they get easily modified :/

any idea how i could save em?

Chompy 02-17-2008 10:52 PM

err, save them as base64 encrypted? then decrypt them on login?

Crow 02-17-2008 10:54 PM

Or use Skyld's encrypting example.

projectigi 02-17-2008 10:54 PM

well that still leaves room for people to decrypt them themself :p

DustyPorViva 02-17-2008 11:03 PM

Quote:

Originally Posted by projectigi (Post 1375449)
well that still leaves room for people to decrypt them themself :p

Um... if people could decrypt easily(or even with effort) then there'd be no purpose to encryption.
You can't say I won't encrypt because someone can decrypt it :o

projectigi 02-17-2008 11:41 PM

Quote:

Originally Posted by DustyPorViva (Post 1375450)
Um... if people could decrypt easily(or even with effort) then there'd be no purpose to encryption.
You can't say I won't encrypt because someone can decrypt it :o

i said im looking for a better way, hm i came up with the idea of endless trigger loops, dunno if that would lag the serv much xD

Inverness 02-18-2008 12:00 AM

Uh, yes it would lag alot.

Stop being so paranoid about people who are trying to hack variables. There is no perfect way to make everything secure and you need to live with that. Saving to file on server is a good method. Another is the base64 encryption.

If you keep the system logged it should not be difficult to find out if anyone is causing a problem.

I'm really getting tired of people who make all these off-the-chart scripts to prevent hacking before their server is even far enough on the map for anyone to want to hack in the first place.

Spend less time worrying about hacking and more time developing.

projectigi 02-18-2008 12:14 AM

i'm not worrying, just came up with a idea when playing diablo2 xD

Horrified 02-18-2008 01:04 AM

Quote:

Originally Posted by Inverness (Post 1375456)
Uh, yes it would lag alot.

Stop being so paranoid about people who are trying to hack variables. There is no perfect way to make everything secure and you need to live with that. Saving to file on server is a good method. Another is the base64 encryption.

If you keep the system logged it should not be difficult to find out if anyone is causing a problem.

I'm really getting tired of people who make all these off-the-chart scripts to prevent hacking before their server is even far enough on the map for anyone to want to hack in the first place.

Spend less time worrying about hacking and more time developing.

+rep

Best said words...ever.

coreys 02-18-2008 01:39 AM

Quote:

Originally Posted by DustyPorViva (Post 1375450)
Um... if people could decrypt easily(or even with effort) then there'd be no purpose to encryption.
You can't say I won't encrypt because someone can decrypt it :o

The only thing you can't decrypt is Navajo ;o

DustyPorViva 02-18-2008 01:54 AM

Quote:

Originally Posted by coreys (Post 1375472)
The only thing you can't decrypt is Navajo ;o

I never said it can't be decrypted.

Skyld 02-18-2008 03:07 AM

Quote:

Originally Posted by Inverness (Post 1375456)
Another is the base64 encryption.

Base64 encoding.

There is no encryption taking place with base64 alone.

Inverness 02-18-2008 03:10 AM

Quote:

Originally Posted by Skyld (Post 1375476)
Base64 encoding.

There is no encryption taking place with base64 alone.

Well, I've never used it so I wouldn't know (the difference). The only time I've ever stored something offline I used an md5 hash.

Skyld 02-18-2008 03:20 AM

Quote:

Originally Posted by Inverness (Post 1375477)
Well, I've never used it so I wouldn't know. The only time I've ever stored something offline I used an md5 hash.

Basically all base64 encoding does is turn characters into a simple representable form. Encryption is scrambling the data so that only the person holding the encryption password/details can later decipher it, which is what my encryption example does; it takes the input key, scrambles the data using it, and returns the scrambled result. If you try to decrypt the scrambled data using any different key, it won't work and will just return garbage.

cbk1994 02-18-2008 05:10 AM

Quote:

Originally Posted by Skyld (Post 1375478)
it won't work and will just return garbage.

I learned that well when I used your encryption in my gun system which I should release but haven't ...

Crow 02-18-2008 04:16 PM

Skyld's encrypting example + callstack + only you having access to whatever encrypts and decrypts something. Should do it, I guess.


All times are GMT +2. The time now is 06:38 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.