I want to program a Java Applet that connects to my personal MySQL database.
Now my question is: Can somebody e.g. open the class-file(s) from the JAR and look for the password/string? (Of course I would exclude the source files when I generate the JAR.) So is it insecure to put the password (as a plain string) in the code?
If it is insecure, what would you suggest. Obfuscator? No direct connection (e.g. using PHP-scripts)? Other options?