Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how do i hide the password in my jdbc connection?

843785Sep 19 2008 — edited Sep 19 2008
I just want to ask how to hide my password in my jdbc connection because when someone decompile my class and read my code, he can change the content of my database. I want to know the steps behind it.

my code goes like this


DriverManager.getConnection("jdbc:mysql://localhost/fruits", "admin", "3xmrk");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2008
Added on Sep 19 2008
9 comments
2,182 views