Anytime I'm working in ASP and need to encrypt something, I use XICE Encryption. You can get full source code in ASP for free at http://www.xice.net/sdkreg.asp
The method I use is to encrypt the password by itself, and store that in the database. Then to check to see if the user enters the correct password on a login form, I'll decrypt whatever is in the database with whatever they enter, and if it comes back as the same thing they entered (their password) then you know it's correct, otherwise you know it's wrong.
If the user forgets their password though, you'll have to have some sort of reset mechanism that resets their password to something random and emails it to them.
Anyway this method seems to provide the best security.
Last edited by spudge; 09-17-2005 at 03:56 PM..
|