[gameprogrammer] Re: XML/Encryption/C++
- From: Chris Herborth <chrish@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sun, 06 May 2007 07:50:14 -0400
Edilson Vasconcelos de Melo Junior wrote:
I’ll use XML for almost every configuration in my game, but there are a
few things I don’t want the regular player to be able to open and edit
it in a text editor. Do you know any good library to work with encrypted
.xml files? I’m using tinyxml for the xml parsing, but now I think it
would be way better if I could encrypt those files.
You could use zlib; compress the XML with gzip, then read it in with
zlib... it'll decompress, then parse the XML as normal. For 99.99% of
your players, this will be more than enough "encryption".
Another benefit is that they'll be ~33% the size of the original XML
file, so they'll load faster and take up less space.
--
Chris Herborth (chrish@xxxxxxxxx) http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] XML/Encryption/C++
- From: Edilson Vasconcelos de Melo Junior
Other related posts:
- » [gameprogrammer] XML/Encryption/C++
- » [gameprogrammer] Re: XML/Encryption/C++
- » [gameprogrammer] Re: XML/Encryption/C++
- [gameprogrammer] XML/Encryption/C++
- From: Edilson Vasconcelos de Melo Junior