This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes hard coding username password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "hard coding username password" Watch "hard coding username password" New topic
Author

hard coding username password

ali farid
Ranch Hand

Joined: Aug 26, 2000
Posts: 60
what are the possible alternatives to avoid hardcoding the connect string , username and password in the database connection class, and still remain encrypted.
shilpa kulkarni
Ranch Hand

Joined: Jun 07, 2000
Posts: 87
Store it in a .ini file and read the file each time you need username and password.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: hard coding username password