Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application needs to store username and password

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys ,

My application needs to store username and password , what is the best solution to make this ? is it flat file , embedded Db or hashtable in my java code
PS: i dont wanna to use standalone DB like MSSQL for some reasons.

Any recommendations ?
 
Somnath Mallick
Ranch Hand
Posts: 482
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well for user name and password thingies i always prefer embedded or stand alone. becuase it detaches the values from the code and the application can retrieve the data only when needed. If its a small application with no security concern then an output to a .txt file would also suffice.
 
Rob Spoor
Sheriff
Pie
Posts: 20510
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure to encrypt your password before storing it, no matter how you store it.
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somnath Mallick wrote:Well for user name and password thingies i always prefer embedded or stand alone. becuase it detaches the values from the code and the application can retrieve the data only when needed. If its a small application with no security concern then an output to a .txt file would also suffice.


If I will use embedded Db any advice for an easy configurable embedded db ?
 
Somnath Mallick
Ranch Hand
Posts: 482
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which DB do you want to use?

Now this questions is more of a JDBC question rather than a "Java In General".

Mods: would this appropriate to move it in the right section?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic