On Tue, Dec 22, 2009 at 2:14 PM, Sam <[email protected]> wrote: > Hi all > This is just a general question about writing to files. Im currently writing > an app that requires information to be stored in files at runtime. As its > only for my own experience and practice im not worried too much about the > security side of things. Im am just curious how I would go about writing to > files that could only be read from my application so that other people can > not just open the file as a text file and view the details there. I have > tried searching online but can not seem to find what i need as im not even > sure what im looking to do is called. If someone can point me in the right > direction that would be great.
You're after some form of reversible encryption. A simple one is simply XORing each byte with a known (only to you) value(s) before writing the data, then XORing it again with the same values when you read it back. -- PJH http://shabbleland.myminicity.com/ http://www.chavgangs.com/register.php?referer=9375 http://www.kongregate.com/?referrer=Shabble
