This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi, I am looking for solution to encode and decode the password. I have developed a web application where I have stored User names and passwords in a dat file. I want to protect passwords from administrator. Any solutions? Thanks, San
If you dont want administrators to see the password then the easiest way os to simply not store it. Instead, store a hash (maybe MD5, it has fairly good performance) of the password. When the user trys to log in, just run the hashing algorithm against the password they supplied and if they match, let them in. If you use a good algorithm like MD5 you are virtually guaranteed that the password is correct, and no administrator would be able to recreate the password even if they had access to the encoded password. Hope this helps Damien