How to securely communicate with a database using a java applet
- by WarmWaffles
I have been writing web applications for quite sometime in PHP with MySQL. I always stored my database connection information into a configuration variable and connected to the database that way.
A client wants a java applet for their website to communicate with their database. I'm very hesitant on this because the applet is going to be public and I am not sure how I would go about storing the database connection information.
I'm paranoid that someone would decompile my application or find some way to extract my database connection information and use it maliciously.
Any suggestions on how to do this securely?