File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes hard coding username password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "hard coding username password" Watch "hard coding username password" New topic

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.
I agree. Here's the link:
subject: hard coding username password
jQuery in Action, 3rd edition