PDA

View Full Version : How do I protect the data in my Apps from hexeditors?



georgep
3rd December 2008, 22:07
Qt is new to me so I have been playing with the examples.
I installed the mysql plugin and have played with the cachedtable example.
It uses the connection.h file from the examples/sql/ directory to connect to a mysql database.
The problem is that the variables(username, password,host) are viewable if I open the resulting .exe with WinHex program.

Tell me something I dont know pls. Thanks!

Ginsengelf
4th December 2008, 06:55
Hi, you could store an encrypted version of the password, and recalculate the original password at the moment you send it to the database. But you would have to store a key for that, which could be read with a hex editor and used to decrypt the password...

I think the only "safe" way would be to ask the user for username/password because no information would be stored in the executable.

Ginsengelf