| Author |
application needs to store username and password
|
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
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 ?
|
Thanks,
Sherif
|
 |
Somnath Mallick
Ranch Hand
Joined: Mar 04, 2009
Posts: 471
|
|
|
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
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Make sure to encrypt your password before storing it, no matter how you store it.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
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
Joined: Mar 04, 2009
Posts: 471
|
|
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?
|
 |
 |
|
|
subject: application needs to store username and password
|
|
|