Hi, I'm new to game design and I was looking for opinions on this matter.
Is it a wise idea to use XML to store character data? I was planning on implementing it as such: Use a simple GUI with which a player would select the desired features for his or her character. With C++, I would create an XML File which could then be used later to load the attributes of the character.
The only hookup I have right now is username and passwords. Could I name the XML file the same as the username and have the passward stored in the file.
Does that seem like a wise approach or should I research an alternative method?
Using XML to store character data
Started by boaty, Aug 12 2008 06:21 AM
2 replies to this topic
#1
Posted 12 August 2008 - 06:21 AM
puellae insanae sunt.
#2
Posted 12 August 2008 - 06:28 AM
XML sounds like overkill for this. You probably only need something simple like an INI file or even just a text file with one piece of data per line (in a predetermined order).
Storing passwords in plaintext is a very bad security practice. It's not imporant as long as you're just developing it by yourself, but if you want to have people use this, you ought to store only a cryptographic hash of the password. MD5 is a popular cryptographic hash, and you can find numerous examples online of C++ code to compute it.
Storing passwords in plaintext is a very bad security practice. It's not imporant as long as you're just developing it by yourself, but if you want to have people use this, you ought to store only a cryptographic hash of the password. MD5 is a popular cryptographic hash, and you can find numerous examples online of C++ code to compute it.
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 12 August 2008 - 04:33 PM
Ahh, Ok, an INI file makes sense, I'll look at those a bit. Also, thanks for the MD5 link.
puellae insanae sunt.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











