I have created a log in page, using servlet for validation and jsp for display.
However, I would not want my passwords and userid to be "sniffed".
Hope to hear the experts' views on how to make sure data are secured in my ms access. Do I need to write any codes in my servlet to make it secure?
Any reference codes or materials would be most useful.
Thank you.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35220
7
posted
0
Best practice is to store passwords as hashed (or digested) values; that way, nobody can get at them.
More generally, security is a multi-faceted process that needs to be considered in each part of the system; if you're asking how to make a system more secure in general, then the SecurityFaq points to many areas you may want to address.
Make encryption a one-way process. In other words, users enter passwords that get converted to encrypted values that *NEVER* get decrypted. This means that to verify login you compare the stored value against the encrypted value the user enters. This also means you never display or send the password to a user (which is actually a feature of this model, not a bug). If someone wants to log in as a user without knowing the password, the user's password has to be reset.