Saturday, 30 August 2014

Protecting Data

Data is passed back and forth all the time in a game. Information on scores, a player's position, various events, etc. Transferring data safely is a must. Therefore, encryptions and other means of preventing data being stolen or being tampered with in transit is very important.

Hackers or exploiters can very easily get the values of Value instances these days, so keeping data as an internal variable of a script (which can't be accessed) or in a folder such as ServerStorage is usually needed. Referring to external variables in code (or just saving/reading them in code) that is not human-readable or is very hard to figure out can stop a player from cheating/hacking/exploiting and editing data.

Protecting data from being accessed in the first place is also probably a good idea. There are various ways to detect exploits occurring and who they're from (such as sudden or unexpected value changes, etc). Detecting that someone has done something they shouldn't have done and then removing them from the server is a good way to go about this. Numerous other safeguards such as detecting loadstrings being enabled from the chatbar would also help
.

No comments:

Post a Comment