Results 1 to 10 of 10
Thread: Store information
- 02-22-2012, 02:19 PM #1
Senior Member
- Join Date
- Aug 2011
- Posts
- 249
- Rep Power
- 2
Store information
Hello everyone,
I wonder what is the best way to store information for a client side program.
Let's say that it's a game and I want to save the records on the client folder.
So saving it on a txt file will let the user change the records easly.
The only thing that pop on my mind is encryption, I know what it is but never worked with it so I'm not sure if it's that right place to use it.
Thanks in advanced.
- 02-22-2012, 02:22 PM #2
Re: Store information
How smart are the clients?
You could store the data in binary.
- 02-25-2012, 09:04 PM #3
Senior Member
- Join Date
- Aug 2011
- Posts
- 249
- Rep Power
- 2
Re: Store information
I have no idea how smart they are.
But if they notice that it's binary they will be able to reverse it into txt right?or it's not possible?
oops .. it's must be possible cause if I want to read this binary file I have to reverse/decode it.
I'm speaking theoretically, as you can see I don't even know how to do it yet xD.
- 02-25-2012, 09:07 PM #4
Re: Store information
You could encode it so that they would need to know java and see your java code to be able to figure out the contents of the file.
- 02-25-2012, 09:29 PM #5
Re: Store information
A question for you: how does that hurt you? If you're not planning to offer some tangible reward for a high score, let the users tamper all they want.saving it on a txt file will let the user change the records easly.
But if you are planning some reward scheme, don't store the data on the player's computer at all. No scheme is entirely immune from hacking.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-28-2012, 01:02 PM #6
Senior Member
- Join Date
- Aug 2011
- Posts
- 249
- Rep Power
- 2
Re: Store information
I used to play Icy Tower when I was young (client side game, not online) and when I found a way to "cheat" the game I stoped playing and just used that trick/hack.how does that hurt you?
So that won't hurt me directly but when people will be able to edit the game by changing values from the notepad they might stop having fun playing it and in the end they will stop which is hurting me.
Ok, so what kind of encode should I use? All I know about encoding is that you change your data by some formula and send it.You could encode it
When you want to do something with it, you have to do the opposite, reverse the code to the original.
So the diffrenec between the encoding types is the formula that change the data right?
There is also something with keys, ok this is definitely not my speciality.
Would you mind to explaining me which encode should I use?do I have to implement the encoding algorithm or it's an class on java.
Thank you again.
- 02-28-2012, 01:30 PM #7
Re: Store information
If you store the numeric data in binary instead of text, that will make it much harder for anyone to change. You would need to be able to do binary arithmetic and have a hex editor to change the file.
- 02-28-2012, 03:33 PM #8
Senior Member
- Join Date
- Aug 2011
- Posts
- 249
- Rep Power
- 2
Re: Store information
Thank you so much.
So all I left to do is to learn how to convert data into binary and the opposite right?
- 02-28-2012, 03:47 PM #9
Member
- Join Date
- Feb 2012
- Location
- Delhi, India
- Posts
- 5
- Rep Power
- 0
Re: Store information
learning converting to binary data is not a big deal... but i will suggest that u should apply some other logics also to make ur encryption key more strong... a question for norm : even a newbie in java can write a simple java program in which he will create a new inputStream and read the binary data 16 bits i.e. 2 bytes at a time n converting the same to desired decimal number format... encryption is crakeddddddd so easily :-P
- 02-28-2012, 03:50 PM #10
Similar Threads
-
How to store information from a file (system.in) into an array?
By koreylegend in forum New To JavaReplies: 3Last Post: 12-11-2011, 07:22 PM -
signer information does not match signer information of other classes
By swyatt in forum New To JavaReplies: 5Last Post: 04-27-2011, 09:14 PM -
Need information...
By nikkka in forum New To JavaReplies: 1Last Post: 03-07-2011, 02:25 PM -
Extract xml to store into db
By palanikumark in forum Advanced JavaReplies: 3Last Post: 06-06-2008, 03:09 PM -
How would you get information from a file and then store it in an array?
By szimme101 in forum Advanced JavaReplies: 3Last Post: 04-07-2008, 06:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks