SETSHOEBOX Problem

Previous topic - Next topic

kanonet

You can store all your data in an (integer) array, then MEM2SPRITE it and save this array as a sprite (png for loseless compression). Put the sprite in the shoebox.
In your program you can just load this sprite, then SPRITE2MEM it back into an array and use your data. - Done.

If you want you add encryption with ENCRYPT/DECRYPT as an additional step for a tiny bit of extra protection (problem would be how to store the key in a save way).
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

CW

#16
Diego,

After reading over the docs for TrueCrypt, I don't believe it will give you the type of security you are after. TrueCrypt is perfect for securing your private files against unauthorized users/snoopers,  however these same files are completely open to authorized users. In this way you could encrypt your music library, for example, and no one could tell that such files are anywhere on your system. But before any music player or other programs could access those files, you first have to unlock (mount, actually) the virtual hard drive to allow on-the-fly access. At that point those files are entirely open to your third-party utilities.

So if it is your aim to lock up your data/text files so that your program can access them, but the users can not, this TrueCrypt isn't the solution I had hoped it might be for you. Maybe a shoebox for your non-text data is the way to go, and for the text data, a custom written encryption function, written into your program, is the way to go. Then only your program (or someone with a de-compiler) will be able to read the text files you wish to keep secure.

I'm sorry I couldn't find a better solution for you. Maybe someone else can.
(Kanonet's solution sounds pretty good.  :good:)

-CW

Kyo

it's all very complicated!  :giveup:

Anyway thanks for reply!  :booze:  :good:

matchy

As Kanonet suggested, storing data inside in code is a good and secure way but could make the large executable file size due to DATA command or variable data. I suggest this but not for a game because, reallly in most cases, what is there that needs hiding? Player and enemy data? Come on!

CW needs to understand the SETSHOEBOX command because it's not about encryption and spacefractal is right about exportation of the product in iOS.