Ok, so I have created a java swing application that uses the JDBC MySQL jar file to connect to a database that I have on a server. No real issues everything works great. I then got to thinking that there is a chance that someone could get into the program and look at the source code. No real big issue there except I have the database information (url, username, password etc.) and that would be just a wide open ticket for someone to just go in and get the database data.
My question is what is the general idea about this? How do you store a password in your source code knowing that someone can go in and get the information if they were really determined?