Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-17-2008, 10:49 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
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?
__________________
Reply With Quote
  #2  
Old 02-17-2008, 10:52 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
err, save them as base64 encrypted? then decrypt them on login?
__________________
Reply With Quote
  #3  
Old 02-17-2008, 10:54 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Or use Skyld's encrypting example.
Reply With Quote
  #4  
Old 02-17-2008, 10:54 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
well that still leaves room for people to decrypt them themself
__________________
Reply With Quote
  #5  
Old 02-17-2008, 11:03 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by projectigi View Post
well that still leaves room for people to decrypt them themself
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
Reply With Quote
  #6  
Old 02-17-2008, 11:41 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by DustyPorViva View Post
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
__________________
Reply With Quote
  #7  
Old 02-18-2008, 12:00 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #8  
Old 02-18-2008, 12:14 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
i'm not worrying, just came up with a idea when playing diablo2 xD
__________________
Reply With Quote
  #9  
Old 02-18-2008, 01:04 AM
Horrified Horrified is offline
Rediculously inactive
Join Date: Jul 2007
Posts: 961
Horrified is on a distinguished road
Send a message via ICQ to Horrified Send a message via AIM to Horrified Send a message via MSN to Horrified Send a message via Yahoo to Horrified
Quote:
Originally Posted by Inverness View Post
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.
Reply With Quote
  #10  
Old 02-18-2008, 01:39 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by DustyPorViva View Post
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
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #11  
Old 02-18-2008, 01:54 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by coreys View Post
The only thing you can't decrypt is Navajo ;o
I never said it can't be decrypted.
Reply With Quote
  #12  
Old 02-18-2008, 03:07 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness View Post
Another is the base64 encryption.
Base64 encoding.

There is no encryption taking place with base64 alone.
Reply With Quote
  #13  
Old 02-18-2008, 03:10 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
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.
__________________
Reply With Quote
  #14  
Old 02-18-2008, 03:20 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness View Post
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.
Reply With Quote
  #15  
Old 02-18-2008, 05:10 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Skyld View Post
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 ...
__________________
Reply With Quote
  #16  
Old 02-18-2008, 04:16 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Skyld's encrypting example + callstack + only you having access to whatever encrypts and decrypts something. Should do it, I guess.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:58 AM.


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