aspose file tools*
The moose likes Java in General and the fly likes application needs to store username and password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "application needs to store username and password " Watch "application needs to store username and password " New topic
Author

application needs to store username and password

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

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: 477
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: 19760
    
  20

Make sure to encrypt your password before storing it, no matter how you store it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

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: 477
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