http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: XML/Encryption/C++


  • To: gameprogrammer@freelists.org
  • Subject: [gameprogrammer] Re: XML/Encryption/C++
  • From: Chris Herborth <chrish@pobox.com>
  • Date: Sun, 06 May 2007 07:50:14 -0400
  • Delivered-to: list1@pendleton.com
  • Delivered-to: gameprogrammer@freelists.org
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUEAwSJiYlJSUnIyMgo KCioqKhnZ2fn5+cZGRmYl5hZWlnY2Ng4ODi5ubl3dnf8/vyFRgZYAAAACXBIWXMAAAsTAAALEwEA mpwYAAACQUlEQVQ4T43US0hUYRiH8UfR4TCZGUQXrHQXBNVsgmrjWQQVRLoNqokI2illF8HoDC2q RZDtowvtTKjAaNFiJIookiLoRsLYJqxNyWTToNPT4jg3c9F/db7vx/e+H+85HCzn1z5rQ+VpgOxC KNxfvu7q8ptseHgmqoUduynn0ovh4eG+MmyjPsvKUBzJLA7af733yzeg5XrvkY1fu6qgFo4C4yue 1jZXdQ5YYibILoROgpUdi0GG2+rE+e1d9VCiKVI11VwHpbc0xOtUsg7mPgdZjdRiUAdDI616MpHT 2QXwtUFT9P0DPTsTFjrp1jf18IOmyNdsMZ9pVLWUjeE3ZM1/itzGxbj2Kx7k1CJsUp0I6VO18y5t S1Wn4On+Q09gT1yJGwyRVkth/C6eR6qeSHZxj12qkwAkc6p6r1l+09SlzkwB43q8XZ2mW2bC+Yv4 i++aSqiv+S72kND1x3SOZXqOG+YzQVYcIMgZNgz2t7FkcHAHdzxNUrEIF6Kx6kcyng/ZoOhheHat sr83N0qzio5CwpGXL8dg7+PHuf6QXTEUDsCtrA7QGrl1bUhL1vnprobLVw9+oHXtEyD53jIUblZ7 E8RTicd+qnqrzWech+nenBbexZRcpWVI0arqdEiQthLsIehQHQX2RTUwBHRoPgOwpQ5CGnUOmjIk aqCNw6BnIf0T0hUojQGBTtLgbKZai5kQgjs6xRVtq4FpoF09SbcO1JQqQjJS//BKZ9dENScac6o+ quzF4Me0i6X6k/lf+AtLGwWY46MfMAAAAABJRU5ErkJggg==
  • In-reply-to: <000201c78f73$b307eac0$1e00a8c0@dualcore>
  • List-archive: <http://www.freelists.org/archives/gameprogrammer>
  • List-help: <mailto:ecartis@freelists.org?Subject=help>
  • List-id: gameprogrammer <gameprogrammer.freelists.org>
  • List-owner: <mailto:bob@pendleton.com>
  • List-post: <mailto:gameprogrammer@freelists.org>
  • List-software: Ecartis version 1.0.0
  • List-subscribe: <gameprogrammer-request@freelists.org?Subject=subscribe>
  • List-unsubscribe: <gameprogrammer-request@freelists.org?Subject=unsubscribe>
  • Organization: Arcane Dragon Software
  • References: <000201c78f73$b307eac0$1e00a8c0@dualcore>
  • Reply-to: gameprogrammer@freelists.org
  • Sender: gameprogrammer-bounce@freelists.org
  • User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326)

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@pobox.com)           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