I have a java program that will create a property file in that I have to write the user Id and password. But the password has to be encrypted.
The java program will get the inputs from the user after running this program i will get the user id input as : ramesh and password as : ramesh. After that I will encrypt the password and then writing into property file.
Here the problem is I want to hide or (as to show as ****)the password while the user is typing..
If you encrypt the user's password, how (and where) will you store the encryption key? You've simply transformed the problem of storing a password into the problem of storing an encryption key, which doesn't buy you much in terms of security.