I would like to create application and distribute it to many users. My application has to communicate with mysql database. For example to valid serial number or to store/read information about certain user.
I can not store/hard-code mysql login and password in program, because it is reversible within minutes, one cracker and then he has complete access to my database.
My question is: How do companies/programmers solve this problem?
Is a good idea to make http requests and process it via PHP which will talk directly to mysql? (prevention against spammers?)
Or maybe to create a server<-->client so there is a listen daemon server, which accepts packets, which are checksummed somehow to make it harder to fake packet and this server programm will communicate with mysql.