FIXD: question!! Also, DAMMIT just kidding. you can now choose to read it or not.

Posted by Alert Games on April 13, 2012, 11:57 a.m.

zOMG a programming question! Also, the questions processing form doesnt work so…

So I was looking around the interwebs and trying stuff out, but I figured maybe has a better method to saving a secure game save.

I started using RC4 for the encryption, however i think that it creates a newline character (or something that game maker [yes, i know] reads as one). So I was thinking theres really only one other way to do this then.

Aside from using a checksum on the file, which I will do anyway, I think the only other way is to parse a long string and 'explode' it to get the different values and assign them to the variables.

So simply put, I would write a binary file, then when i read it, convert it into a string and parse that string using a delimiter and assign it back to the variables.

Is this a good idea or is there a better way?

EDIT: ok why is the title input max character so big when it trims the title anyway

Comments

Alert Games 12 years, 8 months ago

yeah, but thats not a good reason not to use Game Maker. But there are plenty of reasons not to, including security, dependability, functionality, and efficiency.

Anyway I'm looking into 128-bit encryptions, but I may end up just writing something simple to hide the data and use the checksum to make sure it is accurate.

Iasper 12 years, 8 months ago

You could use a simple encryption that uses a random key stored in a registry?

Alert Games 12 years, 8 months ago

i have to figure out which character acts as a newline and maybe i can get the rc4 to work.