How to hide the password in .class file?
843854Oct 28 2002 — edited Oct 28 2002Hi All,
I try to use a Connect.java file to connect to MySQL. The URL is similar to the following:
"jdbc:mysql://192.168.1.1/database?user=name&password=123456"
When I compile the .java file to a .class file, I can still see the full URL line in the machine codes of the Connect.class file.
How to avoid exposing the password in the line?
Thank you.
Anthony Pong