As many of you are I’m sure aware, .blend files can be easily extracted from any runtime. That said, what’s the best way to go about storing mysql logins for, say, a high score board? Here’s a few of my concepts for it, just wondering if there was a better way.
Method one: Make it all server side, just load a .php file with some POST values that either posts the score or retrieves an array of the high score list. The problem with this is it not only seems like overkill, but it also is much harder to manage simply because you’ll have to not only update the local client, but the middle-man and the database to simply add one column to the database. Not just that, but if anyone hacked away at the blend they could easily inject a custom score into the database with great ease using an internet browser.
Method two: Create a compiled C program that contains the encrypted variable (retrieved from the C program using the python script). The problem with this method is obviously if anyone knew the encryption (a simply .blend extraction and python script hacking would give it to you) they could simply run the C program in terminal and get the username password.
Am I missing something obvious? My needs have nothing to do with a high score board, but for storing profiles. Same method for both though. If you guys remember I’m working on my game “EPIC BATTLE GAME”, I’m simply making a server application using blender (I’ve chosen to use blender over unity for the server because of certain restrictions in unity, although the client game is in unity).