Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hard coding username password

 
ali farid
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Store it in a .ini file and read the file each time you need username and password.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic