NW webstorage questions.

Discussion and feedback on Construct 2

Post » Wed Mar 11, 2015 7:12 pm

If someone cleans their cookies will it delete saved data? And how easy are they to hack?
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Wed Mar 11, 2015 9:09 pm

No. Very easy.

The NW local storage is separate from your browser's local storage. It's a sqlite database file. You can easily edit any of the values with something like: http://sqlitebrowser.org/
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Wed Mar 11, 2015 10:20 pm

PSI wrote:If someone cleans their cookies will it delete saved data? And how easy are they to hack?


the last time I tried, if you clean all of the cache of your browser, the savegame will be deleted...

about the hack, I belive you can encrypt the value....
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Wed Mar 11, 2015 10:28 pm

I'm really hoping we get support for google saved games at some point; it would be crazy awesome to have a reliable, device-agnostic, cloud based solution with tons of hack-proof storage.

https://developers.google.com/games/ser ... savedgames

http://android-developers.blogspot.com/ ... cloud.html
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Thu Mar 12, 2015 12:58 am

@TiAm - agreed - that would be awesome! Thanks for the info everyone. @Ribis - how would you go about encrypting the values?
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Mar 12, 2015 10:45 am

No save system is hack-proof, because if the game can read the save, then so can someone else (in theory).

NW.js storage is entirely separate from the browser. Clearing cookies/offline data/uninstalling any other browser on the system has no effect on NW.js' own storage.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,782

Post » Thu Mar 12, 2015 11:20 am

btw: It seems WebStorage is reset everytime you update your app on Windows (Phone) Store.
So its not possible to use it for savegame data. I have to try the Win8 Plugin Roming data and if Save/Load works on Win8.
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Thu Mar 12, 2015 8:57 pm

@Ashley - thanks for the info. @Bl4ckSh33p - after you try it, please share if that works.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Mar 12, 2015 10:37 pm

@Bl4ckSh33p
Can you give a procedure sample of what your doing to causes the data clearance with Windows Phone store. I get a data clear wipe every time I upload a package through the developers tools. However if this is through store downloading, this is concerning.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Wed Mar 18, 2015 10:07 am

PSI wrote:@TiAm - agreed - that would be awesome! Thanks for the info everyone. @Ribis - how would you go about encrypting the values?


There are two plugin for that... you select a key, and from this, you can encrypt the value when you will save a string...when construct2 will try to open the new string, the plugin convert the string in a correct value (with a correct key),

this is an example, I try to find the plugin, when I get home I will link the plugin

anyway, you can try to save the data in different way, I mean, if you need to store some coins, like 50, you can save like this:

"23y9812yu3982u" this is to get confused, just random string "50" real value "u23u2undu" a new random string"25" check if they hack the coin "u3342uy2382938" random string

without encrypt, you can make your own secure script... can be difficult, but can get harder to hack a single value...

50 is the real coin, construct count just the 50, if they hack it, a function check if a coin/2 is = to 25 o close to it... so, they need to hack 2 value, but the original string will be:

23y9812yu3982u50u23u2undu25u3342uy2382938

construct2 will count the "u" tokenat, you now where the 50 and 25 are, for example

and if you store like 5 variable, you will get a long string... and you can mix it... but there is a plugin to encrypt, so, this is just for fun :D
B
21
S
9
Posts: 298
Reputation: 2,967

Next

Return to Construct 2 General

Who is online

Users browsing this forum: AekiroStudio and 9 guests