File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 477

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: 19541
    
  16

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

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application needs to store username and password
 
Similar Threads
Retrieving submitted password
Connect to db
Encrypt JMX console password
hi
Saving, getting byte[ ]