Password Implementation

Hi,I want to provide a user id and password screen and then save the encrypted password in a file/ table. This will be used to authenticate users accessing the application.How to implement this?Any help is appreciated.Thanks in advnace.Rajeev.
[285 byte] By [Rajeev.Asthanaa] at [2007-10-1 1:39:04]
# 1
Trail: Creating a GUI with JFC/Swing - http://java.sun.com/docs/books/tutorial/uiswing/Lesson: I/O: Reading and Writing (but no 'rithmetic) - http://java.sun.com/docs/books/tutorial/essential/io/
yawmarka at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 2
Thanks ...butIs storing password in a file a good option without encrypting it? If someone opens the file, he/ she can read the password.
Rajeev.Asthanaa at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 3
Hi,You should either encrypt the passwords, or store a hash of the passwords. It depends on if you need to be able to read and use the password, or if you only need to be able to verify that a password is correct or not./Kaj
kajbja at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 4
I want to verify the user id and password before someone logs in.Can u please give me more pointers as to how to implement this....Thanks
Rajeev.Asthanaa at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 5
Hi,You can take a look at: http://www.evolt.org/article/Password_encryption_rationale_and_Java_example/18/60122/?format=print&rating=true&comments=false/Kaj
kajbja at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 6

> Hi,

>

> You can take a look at:

> http://www.evolt.org/article/Password_encryption_ratio

> nale_and_Java_example/18/60122/?format=print&rating=tr

> ue&comments=false

>

> /Kaj

Unfortunately, the above link doesnt show the content. So i tried this one, http://www.evolt.org/article/Password_encryption_rationale_and_Java_example/18/60122/index.html

lgmqy2000a at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 7
> Unfortunately, the above link doesnt show the> content. So i tried this one,> http://www.evolt.org/article/Password_encryption_ratio> nale_and_Java_example/18/60122/index.htmlThanks./Kaj
kajbja at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 8
It still says that article is not found
Rajeev.Asthanaa at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...
# 9
Hmm.. Strange. I tried this one, and it works. http://www.evolt.org/article/%20Password_encryption_rationale_and_Java_example/18/60122//Kaj
kajbja at 2007-7-8 1:58:28 > top of Java-index,Security,Event Handling...