I want to store user passwords for my application in a text file. The passwords have to be stored encrypted. How can I do this? I tried it with JCE 1.2 but I don't know what to do exactly.
I want to be able to cipher a password, save the encrypted version in a textfile.
I want also to be able to check, whether a user gave a correct password. Therefor I want to read the ecrypted password and want to encrypt the password given by the user, too. Then I want to see if the two encryption are the same. Is this the right approach? Or what other possibilities are there to do a password check against a encrypted password?